Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2006-11-10 03:08:43 +0300
committerAtsushi Eno <atsushieno@gmail.com>2006-11-10 03:08:43 +0300
commite19092967f4ba5bd9a420479f539e4bfaefd53bc (patch)
tree86635f68f639a89a50e4be712eb7831dfeabff69 /mcs/class/System.XML/Mono.Xml.XPath
parentd570dc78f567c504e5affa2cb7f61e9940acab4c (diff)
2006-11-10 Atsushi Enomoto <atsushi@ximian.com>
* XPathNavigator.cs : InnerXml should allow Text-only content. Fixed bug #79874, when tied to XPathNavigatorReader fix. * XPathNavigatorReader.cs : removed node type restriction on initialization. Fixed bug #79874, when tied to XPathNavigator fix. * XPathNavigatorTests.cs : added test for bug #79874. svn path=/trunk/mcs/; revision=67653
Diffstat (limited to 'mcs/class/System.XML/Mono.Xml.XPath')
-rw-r--r--mcs/class/System.XML/Mono.Xml.XPath/ChangeLog5
-rw-r--r--mcs/class/System.XML/Mono.Xml.XPath/XPathNavigatorReader.cs7
2 files changed, 5 insertions, 7 deletions
diff --git a/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog b/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
index c9549948b62..b21d0e774ce 100644
--- a/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
+++ b/mcs/class/System.XML/Mono.Xml.XPath/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-10 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XPathNavigatorReader.cs : removed node type restriction on
+ initialization. Fixed bug #79874, when tied to XPathNavigator fix.
+
2006-10-11 Atsushi Enomoto <atsushi@ximian.com>
* XPathEditableDocument.cs : (XmlDocumentEditableNavigator)
diff --git a/mcs/class/System.XML/Mono.Xml.XPath/XPathNavigatorReader.cs b/mcs/class/System.XML/Mono.Xml.XPath/XPathNavigatorReader.cs
index b02039c4656..e6f81ae4163 100644
--- a/mcs/class/System.XML/Mono.Xml.XPath/XPathNavigatorReader.cs
+++ b/mcs/class/System.XML/Mono.Xml.XPath/XPathNavigatorReader.cs
@@ -42,13 +42,6 @@ namespace Mono.Xml.XPath
{
public XPathNavigatorReader (XPathNavigator nav)
{
- switch (nav.NodeType) {
- case XPathNodeType.Element:
- case XPathNodeType.Root:
- break;
- default:
- throw new InvalidOperationException (String.Format ("NodeType {0} is not supported to read as a subtree of an XPathNavigator.", nav.NodeType));
- }
current = nav.Clone ();
}