Author: gonzalo
Date: 2005-04-21 23:37:26 -0400 (Thu, 21 Apr 2005)
New Revision: 43426

Modified:
   trunk/mcs/class/System.Web/System.Web.Compilation/AspParser.cs
   trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
Log:
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.



Modified: trunk/mcs/class/System.Web/System.Web.Compilation/AspParser.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Compilation/AspParser.cs      
2005-04-22 03:10:45 UTC (rev 43425)
+++ trunk/mcs/class/System.Web/System.Web.Compilation/AspParser.cs      
2005-04-22 03:37:26 UTC (rev 43426)
@@ -286,10 +286,17 @@
                                        }
                                        
                                        tagtype = TagType.Tag;
-                                       if (Eat ('/') && Eat ('>'))
+                                       if (Eat ('/') && Eat ('>')) {
                                                tagtype = TagType.SelfClosing;
-                                       else if (!Eat ('>'))
-                                               OnError ("expecting '>'. Got '" 
+ tokenizer.Value + "'");
+                                       } else if (!Eat ('>')) {
+                                               if (attributes.IsRunAtServer 
()) {
+                                                       OnError ("The server is 
not well formed.");
+                                                       break;
+                                               }
+                                               tokenizer.Verbatim = true;
+                                               attributes.Add ("", GetVerbatim 
(tokenizer.get_token (), ">") + ">");
+                                               tokenizer.Verbatim = false;
+                                       }
                                }
 
                                break;

Modified: trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2005-04-22 
03:10:45 UTC (rev 43425)
+++ trunk/mcs/class/System.Web/System.Web.Compilation/ChangeLog 2005-04-22 
03:37:26 UTC (rev 43426)
@@ -1,3 +1,9 @@
+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.
+
 2005-04-20 Rafael Teixeira <[EMAIL PROTECTED]>
        * BaseCompiler.cs: do the bridge of Explicit/Strict attributes from
        @Page/@Control directives to CodeDOM (VB.NET support)

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to