Author: gonzalo
Date: 2005-04-21 23:58:41 -0400 (Thu, 21 Apr 2005)
New Revision: 43427
Modified:
trunk/mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs
trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
Log:
2005-04-22 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* AspGenerator.cs: use a stack for non-server tags even before getting
to a form. Fixes bug #70274.
Modified: trunk/mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs
2005-04-22 03:37:26 UTC (rev 43426)
+++ trunk/mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs
2005-04-22 03:58:41 UTC (rev 43427)
@@ -181,6 +181,7 @@
StringBuilder tagInnerText = new StringBuilder ();
static Hashtable emptyHash = new Hashtable ();
bool inForm;
+ bool useOtherTags;
public AspGenerator (TemplateParser tparser)
{
@@ -329,10 +330,12 @@
tparser.AddDirective (tagid,
attributes.GetDictionary (null));
break;
case TagType.Tag:
- if (ProcessTag (tagid, attributes, tagtype))
+ if (ProcessTag (tagid, attributes, tagtype)) {
+ useOtherTags = true;
break;
+ }
- if (inForm) {
+ if (useOtherTags) {
stack.Builder.EnsureOtherTags ();
stack.Builder.OtherTags.Add (tagid);
}
@@ -340,7 +343,7 @@
TextParsed (location, location.PlainText);
break;
case TagType.Close:
- bool notServer = (inForm && TryRemoveTag
(tagid, stack.Builder.OtherTags));
+ bool notServer = (useOtherTags && TryRemoveTag
(tagid, stack.Builder.OtherTags));
if (!notServer && CloseControl (tagid))
break;
Modified: trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2005-04-22
03:37:26 UTC (rev 43426)
+++ trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2005-04-22
03:58:41 UTC (rev 43427)
@@ -1,5 +1,10 @@
2005-04-22 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+ * AspGenerator.cs: use a stack for non-server tags even before getting
+ to a form. Fixes bug #70274.
+
+2005-04-22 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
* AspParser.cs: don't error out on ill formed tags if it's not a server
tag (ie, allow something like '<table align="left cellpadding="0">' to
work, as MS does. Fixes bug #67909.
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches