Author: atsushi
Date: 2007-10-10 13:22:43 -0400 (Wed, 10 Oct 2007)
New Revision: 87281
Modified:
trunk/mcs/class/System.XML/System.Xml/ChangeLog
trunk/mcs/class/System.XML/System.Xml/XmlTextWriter2.cs
Log:
2007-10-10 Atsushi Enomoto <[EMAIL PROTECTED]>
* XmlTextWriter2.cs : making <del>silly</del>funky MS compatibility
change in WriteStartAttribute() to call WriteEndAttribute() if an
attribute is open.
Modified: trunk/mcs/class/System.XML/System.Xml/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/System.Xml/ChangeLog 2007-10-10 17:15:16 UTC
(rev 87280)
+++ trunk/mcs/class/System.XML/System.Xml/ChangeLog 2007-10-10 17:22:43 UTC
(rev 87281)
@@ -1,5 +1,11 @@
2007-10-10 Atsushi Enomoto <[EMAIL PROTECTED]>
+ * XmlTextWriter2.cs : making <del>silly</del>funky MS compatibility
+ change in WriteStartAttribute() to call WriteEndAttribute() if an
+ attribute is open.
+
+2007-10-10 Atsushi Enomoto <[EMAIL PROTECTED]>
+
* XmlTextWriter2.cs : I could make previous change only in 2.0 mode.
2007-10-10 Atsushi Enomoto <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/System.XML/System.Xml/XmlTextWriter2.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml/XmlTextWriter2.cs 2007-10-10
17:15:16 UTC (rev 87280)
+++ trunk/mcs/class/System.XML/System.Xml/XmlTextWriter2.cs 2007-10-10
17:22:43 UTC (rev 87281)
@@ -794,6 +794,14 @@
public override void WriteStartAttribute (
string prefix, string localName, string namespaceUri)
{
+ // LAMESPEC: this violates the expected behavior of
+ // this method, as it incorrectly allows unbalanced
+ // output of attributes. Microfot changes description
+ // on its behavior at their will, regardless of
+ // ECMA description.
+ if (state == WriteState.Attribute)
+ WriteEndAttribute ();
+
if (state != WriteState.Element && state !=
WriteState.Start)
throw StateError ("Attribute");
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches