When running on an xhtml page, xpath doesn't seem to return any results.
var result = document.evaluate( "//a/img", document.body, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null );
For example returns an empty result set. What's the problem here, and how do I fix it?