RESOLVED DUPLICATE of bug 8791 12413
Misunderstood NameSpace with DOM Level 3 XPath
https://bugs.webkit.org/show_bug.cgi?id=12413
Summary Misunderstood NameSpace with DOM Level 3 XPath
Une Bévue
Reported 2007-01-26 03:24:06 PST
WebKit doesn't honor correctly the namespace for an xhtml document having to used namespaces : 'xhtml' and 'svg'. See the page given in reference, at the top left corner the image is an svg one. The select tag allows to choose différent XPath expressions, notices all are replicated for example for the firsts two : //body <!-- works only with WebKit build 19107--> //xhtml:body <!-- works with Firefox 2.0.0.1 and Opera 9.1 --> It seems this is ONLY a namespace prob because firstly all the XPath expression are correctly understood by WebKit and secondly notice WebKit never calls the function nsResolver(prefix) which returns the corresponding NameSpaceURI. The page logs the result of the XPath expression (below XPath expression result log), shows the source code of the page itself (below SOurce code of this page and finally a WebKit log (bottom of the page) corresponding to the "WebKitDetect.js". Notice also i'll add new expressions in order to test most of the XPath functionnality. Best, Yvon
Attachments
Alexey Proskuryakov
Comment 1 2007-01-28 11:25:17 PST
*** This bug has been marked as a duplicate of 8791 ***
Alexey Proskuryakov
Comment 2 2007-02-03 01:23:59 PST
With bug 8791 fixed, this test suite seems to uncover quite a number of issues with our XPath implementation. We'll need separate bugs to track those, of course.
Alexey Proskuryakov
Comment 3 2007-02-04 05:31:11 PST
Bug 12581 for plain "//title" matching <title> in XHTML (affects many tests).
Lucas Forschler
Comment 4 2019-02-06 09:03:56 PST
Mass moving XML DOM bugs to the "DOM" Component.
Note You need to log in before you can comment on or make changes to this bug.