DOM XPath query doesn't work when a xmlns is given
In Firefox JavaScript console: parser = new DOMParser(); foo = parser.parseFromString('<foo></foo>', "text/xml"); res = foo.evaluate("/foo", foo, null, 0, null); res.iterateNext(); > [object Element] foo = parser.parseFromString('<foo xmlns="http://foo.bar.baz/quux"></foo>', "text/xml"); res = foo.evaluate("/foo", foo, null, 0, null); res.iterateNext(); > null res = foo.evaluate("*[1]", foo, null, 0, null); res.iterateNext(); > [object Element] If an XML document doesn't contain an xmlns, it gets parsed and queried correctly. If it does, we are not able to query by tag and attribute names