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 18.104.22.168 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.
*** This bug has been marked as a duplicate of 8791 ***
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.
Bug 12581 for plain "//title" matching <title> in XHTML (affects many tests).
Mass moving XML DOM bugs to the "DOM" Component.