You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
From discussion of #7, XML documents don't seem to be finding descendants (EDITTED: this list has been updated so that the checkbox indicates whether the native implementation is matched and the + or - afterward indicates whether the native implementation gets a result for the expression):
+ //Root
+ //Menu
+ /descendant::Root
+ /descendant::Menu
+ /descendant-or-self::Root
+ /descendant-or-self::Menu
+ //self::Root
+ //self::Menu
+ //*[self::Root]
+ //*[self::Menu]
- /Root//Root
+ /Root//Menu
- /Root/descendant::Root
+ /Root/descendant::Menu
+ /Root/descendant-or-self::Root
+ /Root/descendant-or-self::Menu
+ /Root//self::Root
+ /Root//self::Menu
- /Root//*[self::Root]
+ /Root//*[self::Menu]
This appears to affect all browsers, provided the override is used to force install.
List generated by this code in case anyone wants to clean it up and make some kind of test out of it or tinker with it and see if anything else affects whether it works (EDITTED):
(EDITTED: the old list was generated by this code, which works on browsers that have no native implementation, but does not compare against the native implementation to automatically identify the few expression combinations that wouldn't work anyway:)
Thanks -- in any case, I've updated this slightly to report whether WGX matches the native implementation, for the "Root descendant of Root" cases being auto-generated by this method of testing.
In case anyone finds it useful, I've been messing around with case sensitivity issues in some of the descendant code. getElementsByTagName doesn't work properly with namespaced XML, and getElementsByTagNameNS needs the original case of the namespace.
It's not a complete (or very good) fix, but it did get the library working well enough for my specific use case.
From discussion of #7, XML documents don't seem to be finding descendants (EDITTED: this list has been updated so that the checkbox indicates whether the native implementation is matched and the + or - afterward indicates whether the native implementation gets a result for the expression):
//Root
//Menu
/descendant::Root
/descendant::Menu
/descendant-or-self::Root
/descendant-or-self::Menu
//self::Root
//self::Menu
//*[self::Root]
//*[self::Menu]
/Root//Root
/Root//Menu
/Root/descendant::Root
/Root/descendant::Menu
/Root/descendant-or-self::Root
/Root/descendant-or-self::Menu
/Root//self::Root
/Root//self::Menu
/Root//*[self::Root]
/Root//*[self::Menu]
This appears to affect all browsers,
provided the override is used to force install.List generated by this code in case anyone wants to clean it up and make some kind of test out of it or tinker with it and see if anything else affects whether it works (EDITTED):
(EDITTED: the old list was generated by this code, which works on browsers that have no native implementation, but does not compare against the native implementation to automatically identify the few expression combinations that wouldn't work anyway:)
The text was updated successfully, but these errors were encountered: