* LocationPathPattern.cs : Wildcard name is held as "", so we should also check "" for wildcard. Patch by Andrew Skiba. svn path=/trunk/mcs/; revision=40333
@@ -1,3 +1,8 @@
+2005-02-09 Atsushi Enomoto <[email protected]>
+
+ * LocationPathPattern.cs : Wildcard name is held as "", so we should
+ also check "" for wildcard. Patch by Andrew Skiba.
2005-01-25 Atsushi Enomoto <[email protected]>
* XPathEditableDocument.cs : eliminating "throw new Exception".
@@ -72,7 +72,7 @@ namespace Mono.Xml.XPath {
if (patternPrevious == null && filter == null) {
NodeNameTest t = nodeTest as NodeNameTest;
if (t != null) {
- if (t.Name.Name == "*")
+ if (t.Name.Name == "*" || t.Name.Name.Length == 0)
return -.25;
return 0;
}