diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2009-08-21 07:45:06 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2009-08-21 07:45:06 +0400 |
commit | 6d0574134ddef6056348b8555ae9f42d38db660e (patch) | |
tree | 688b9cb0cfd8c8e7e8ac1eb7d93470384f8b46c1 /mcs/class/System.XML/System.Xml | |
parent | f61b24b177fa405883ae42d9201729bbf9aa2d30 (diff) |
2009-08-21 Atsushi Enomoto <atsushi@ximian.com>
* XmlTextReader.cs : there still was use of bogus
XmlParserContext.NameTable.
* XmlTextReaderTests.cs : added test for null nametable in parser
context.
svn path=/trunk/mcs/; revision=140397
Diffstat (limited to 'mcs/class/System.XML/System.Xml')
-rw-r--r-- | mcs/class/System.XML/System.Xml/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.XML/System.Xml/XmlTextReader.cs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/System.XML/System.Xml/ChangeLog b/mcs/class/System.XML/System.Xml/ChangeLog index b8f0331dbb9..429186c5d91 100644 --- a/mcs/class/System.XML/System.Xml/ChangeLog +++ b/mcs/class/System.XML/System.Xml/ChangeLog @@ -1,3 +1,8 @@ +2009-08-21 Atsushi Enomoto <atsushi@ximian.com> + + * XmlTextReader.cs : there still was use of bogus + XmlParserContext.NameTable. + 2009-07-22 Atsushi Enomoto <atsushi@ximian.com> * XmlNamespaceManager.cs : Adding prefix "xml" seems to be allowed diff --git a/mcs/class/System.XML/System.Xml/XmlTextReader.cs b/mcs/class/System.XML/System.Xml/XmlTextReader.cs index ef3a9b1525e..106ae5a35e9 100644 --- a/mcs/class/System.XML/System.Xml/XmlTextReader.cs +++ b/mcs/class/System.XML/System.Xml/XmlTextReader.cs @@ -1833,7 +1833,7 @@ namespace System.Xml { IncrementAttributeToken (); XmlAttributeTokenInfo ati = attributeTokens [currentAttribute]; - ati.Name = parserContext.NameTable.Add (name); + ati.Name = NameTable.Add (name); ati.Prefix = String.Empty; ati.NamespaceURI = String.Empty; IncrementAttributeValueToken (); |