* ObjectTagBuilder.cs: only fail when no id and no attributes. svn path=/trunk/mcs/; revision=50823
@@ -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
@@ -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.");