Преглед изворни кода

2006-10-06 Gonzalo Paniagua Javier <[email protected]>

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


svn path=/trunk/mcs/; revision=66333
Gonzalo Paniagua Javier пре 19 година
родитељ
комит
52a3e80478

+ 5 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -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

+ 2 - 2
mcs/class/System.Web/System.Web.UI.WebControls/Image.cs

@@ -182,11 +182,11 @@ namespace System.Web.UI.WebControls {
 			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)