Просмотр исходного кода

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.



svn path=/trunk/mcs/; revision=40333
Atsushi Eno 21 лет назад
Родитель
Сommit
ec0eea4890

+ 5 - 0
mcs/class/System.XML/Mono.Xml.XPath/ChangeLog

@@ -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".

+ 1 - 1
mcs/class/System.XML/Mono.Xml.XPath/LocationPathPattern.cs

@@ -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;
 					}