Author: gonzalo
Date: 2006-10-06 01:42:14 -0400 (Fri, 06 Oct 2006)
New Revision: 66333

Modified:
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/Image.cs
Log:
2006-10-06 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * Image.cs: write 'alt' after 'src' so that the HyperLink test do not
        fail.



Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2006-10-06 05:40:59 UTC (rev 66332)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2006-10-06 05:42:14 UTC (rev 66333)
@@ -1,3 +1,8 @@
+2006-10-06 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * Image.cs: write 'alt' after 'src' so that the HyperLink test do not
+       fail.
+
 2006-10-05 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * HyperLink.cs: don't render the img tag 'by hand' but use an Image

Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/Image.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/Image.cs       
2006-10-06 05:40:59 UTC (rev 66332)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/Image.cs       
2006-10-06 05:42:14 UTC (rev 66333)
@@ -182,11 +182,11 @@
                        if (s.Length > 0)
                                writer.AddAttribute 
(HtmlTextWriterAttribute.Longdesc, ResolveClientUrl (s));
 #else
-                       // alt is always present, even if empty, in 1.x
-                       writer.AddAttribute (HtmlTextWriterAttribute.Alt, 
AlternateText);
                        string s = ImageUrl;
                        if (s.Length > 0)
                                writer.AddAttribute 
(HtmlTextWriterAttribute.Src, ResolveClientUrl (s));
+                       // alt is always present, even if empty, in 1.x
+                       writer.AddAttribute (HtmlTextWriterAttribute.Alt, 
AlternateText);
                        // added in Fx 1.1 SP1 but the HtmlTextWriterAttribute 
wasn't
                        s = DescriptionUrl;
                        if (s.Length > 0)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to