Commit Graph
4 Commits
Author SHA1 Message Date
Christian Hergert 3eb3075f11 2008-10-07 Christian Hergert <[email protected]>
* System.Web.UI.HtmlControls/HtmlImage.cs: Do not render the src
	attribute if it is null or empty.  An empty src attribute makes
	browsers download the current page url as the url of the image.

	* Test/System.Web.UI.HtmlControls/HtmlImageTest.cs: Add test to
	make sure the src attribute is not rendered when it is empty.


svn path=/trunk/mcs/; revision=115158
2008-10-07 23:41:53 +00:00
Dean Brettle 382be2e62f ++ System.Web.UI.HtmlControls/ChangeLog (working copy)
* HtmlControl.cs (PreProcessRelativeReference), 
	HtmlForm.cs (RenderAttributes), HtmlInputButton (RenderAttributes),
	HtmlInputRadioButton (RenderAttributes), HtmlSelect (RenderChildren):
	Encode attributes that could contain HTML special chars.
	
	* HtmlSelect (RenderChildren): HTML-encode option text.

++ Test/System.Web.UI.HtmlControls/ChangeLog	(working copy)

	* HtmlInputButtonTest.cs, HtmlImageTest.cs, HtmlFormTest.cs, 
	HtmlInputRadioButtonTest.cs, HtmlSelectTest.cs:	Added tests 
	for HTML-encoded of attributes. 


svn path=/trunk/mcs/; revision=109349
2008-07-31 14:34:51 +00:00
Vladimir Krasnov 35ea43b3e4 * HtmlImageTest.cs: fixed RenderAttributes, switched to webtest since src attribute must be resolved
svn path=/trunk/mcs/; revision=83082
2007-07-31 14:21:58 +00:00
Dick Porter 3cecd6b505 Tests
svn path=/trunk/mcs/; revision=48937
2005-08-26 22:53:47 +00:00