Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/referencesource/System.Web/UI/WebControls/TreeNode.cs')
-rw-r--r--mcs/class/referencesource/System.Web/UI/WebControls/TreeNode.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/class/referencesource/System.Web/UI/WebControls/TreeNode.cs b/mcs/class/referencesource/System.Web/UI/WebControls/TreeNode.cs
index 4d71a2379d7..5f30b9b3e70 100644
--- a/mcs/class/referencesource/System.Web/UI/WebControls/TreeNode.cs
+++ b/mcs/class/referencesource/System.Web/UI/WebControls/TreeNode.cs
@@ -1213,9 +1213,18 @@ namespace System.Web.UI.WebControls {
if (imageToolTip.Length > 0) {
writer.AddAttribute(HtmlTextWriterAttribute.Alt,
String.Format(CultureInfo.CurrentCulture, imageToolTip, Text));
+ //fix bug 1197460, quirk it so the fix will only be enabled on projects on 4.6.1 or later version of framework
+ if (BinaryCompatibility.Current.TargetsAtLeastFramework461) {
+ writer.AddAttribute(HtmlTextWriterAttribute.Title,
+ String.Format(CultureInfo.CurrentCulture, imageToolTip, Text));
+ }
}
else {
writer.AddAttribute(HtmlTextWriterAttribute.Alt, String.Empty);
+ //fix bug 1197460, quirk it so the fix will only be enabled on projects on 4.6.1 or later version of framework
+ if (BinaryCompatibility.Current.TargetsAtLeastFramework461) {
+ writer.AddAttribute(HtmlTextWriterAttribute.Title, String.Empty);
+ }
}
writer.RenderBeginTag(HtmlTextWriterTag.Img);
writer.RenderEndTag();
@@ -1362,9 +1371,17 @@ namespace System.Web.UI.WebControls {
writer.AddStyleAttribute(HtmlTextWriterStyle.BorderWidth, "0");
if (ImageToolTip.Length > 0) {
writer.AddAttribute(HtmlTextWriterAttribute.Alt, ImageToolTip);
+ //fix bug 1197460, quirk it so the fix will only be enabled on projects on 4.6.1 or later version of framework
+ if (BinaryCompatibility.Current.TargetsAtLeastFramework461) {
+ writer.AddAttribute(HtmlTextWriterAttribute.Title, ImageToolTip);
+ }
}
else {
writer.AddAttribute(HtmlTextWriterAttribute.Alt, String.Empty);
+ //fix bug 1197460, quirk it so the fix will only be enabled on projects on 4.6.1 or later version of framework
+ if (BinaryCompatibility.Current.TargetsAtLeastFramework461) {
+ writer.AddAttribute(HtmlTextWriterAttribute.Title, String.Empty);
+ }
}
writer.RenderBeginTag(HtmlTextWriterTag.Img);
writer.RenderEndTag();