Explorar o código

2005-09-27 Gonzalo Paniagua Javier <[email protected]>

	* ObjectTagBuilder.cs: only fail when no id and no attributes.


svn path=/trunk/mcs/; revision=50823
Gonzalo Paniagua Javier %!s(int64=20) %!d(string=hai) anos
pai
achega
d5f384ac7e

+ 4 - 0
mcs/class/System.Web/System.Web.UI/ChangeLog

@@ -1,3 +1,7 @@
+2005-09-27 Gonzalo Paniagua Javier <[email protected]>
+
+	* ObjectTagBuilder.cs: only fail when no id and no attributes.
+
 2005-09-23  Sebastien Pouliot  <[email protected]>
 
 	* DataBindingCollection.cs: Using an hashtable is a nice trick but

+ 1 - 1
mcs/class/System.Web/System.Web.UI/ObjectTagBuilder.cs

@@ -63,7 +63,7 @@ namespace System.Web.UI
 					   string id,
 					   IDictionary attribs) 
 		{
-			if (id == null)
+			if (id == null && attribs == null)
 				throw new HttpException ("Missing 'id'.");
 			if (attribs == null)
 				throw new ParseException (parser.Location, "Error in ObjectTag.");