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>2005-12-13 14:19:46 +0300
committerAtsushi Eno <atsushieno@gmail.com>2005-12-13 14:19:46 +0300
commitd3f0d5ba2845546e61363264656b59eece93f7b8 (patch)
tree9e31f252078749acb7210964dbaccfacabb52787 /mcs/class/System.XML/System.Xml.XPath
parentaba5cde6e552af5255f8c54b80c79a19f6f655c5 (diff)
2005-12-13 Atsushi Enomoto <atsushi@ximian.com>
* XPathNavigator.cs : PrependChild() should use AppendChild() when there is no child. * XPathEditableNavigatorTests.cs : added tests for PrependChild(). svn path=/trunk/mcs/; revision=54277
Diffstat (limited to 'mcs/class/System.XML/System.Xml.XPath')
-rw-r--r--mcs/class/System.XML/System.Xml.XPath/ChangeLog5
-rw-r--r--mcs/class/System.XML/System.Xml.XPath/XPathNavigator.cs3
2 files changed, 6 insertions, 2 deletions
diff --git a/mcs/class/System.XML/System.Xml.XPath/ChangeLog b/mcs/class/System.XML/System.Xml.XPath/ChangeLog
index f8cc3cc241c..a28c683ca28 100644
--- a/mcs/class/System.XML/System.Xml.XPath/ChangeLog
+++ b/mcs/class/System.XML/System.Xml.XPath/ChangeLog
@@ -1,5 +1,10 @@
2005-12-13 Atsushi Enomoto <atsushi@ximian.com>
+ * XPathNavigator.cs : PrependChild() should use AppendChild() when
+ there is no child.
+
+2005-12-13 Atsushi Enomoto <atsushi@ximian.com>
+
* XPathNavigator.cs : InsertAfter() should raise an error before
MoveToNext() when current node is either attribute or namespace.
diff --git a/mcs/class/System.XML/System.Xml.XPath/XPathNavigator.cs b/mcs/class/System.XML/System.Xml.XPath/XPathNavigator.cs
index 9f8a04a7ff2..e32ad8fe78c 100644
--- a/mcs/class/System.XML/System.Xml.XPath/XPathNavigator.cs
+++ b/mcs/class/System.XML/System.Xml.XPath/XPathNavigator.cs
@@ -1156,7 +1156,7 @@ namespace System.Xml.XPath
if (nav.MoveToFirstChild ())
return nav.InsertBefore ();
else
- return InsertBefore ();
+ return AppendChild ();
}
public virtual void PrependChild (string xmlFragments)
@@ -1164,7 +1164,6 @@ namespace System.Xml.XPath
PrependChild (CreateFragmentReader (xmlFragments));
}
- [MonoTODO]
public virtual void PrependChild (XmlReader reader)
{
using (XmlWriter w = PrependChild ()) {