Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing the selector API with XML documents
    primarykey
    data
    text
    <p><strong><em>Short question:</em></strong> is the selectors API sensible for processing XML documents?</p> <p><strong><em>Longer question with the "why I'm asking"...<br /></em></strong> I'm in the progress of making some old code that makes use of client-side generated XML and XPath into something cross-browser that's happy on later versions of IE (10+) as well as down to IE7 (as well as Chrome, Firefox, etc...)</p> <p>Now there's <a href="https://stackoverflow.com/q/19300859/130352">various</a> <a href="https://stackoverflow.com/q/13521554/130352">questions</a> around XPath support in IE and the fact it appears to be no longer cared for (no <code>evaluate()</code>, no <code>SelectNodes()</code>). Allegedly <a href="http://blogs.msdn.com/b/ieinternals/archive/2012/09/26/windows-8-internet-explorer-10-activex-control-changes-and-restrictions.aspx" rel="nofollow noreferrer">some classes have been whitelisted</a>, but some testing seems to hint this is unreliable when ActiveX filtering is enabled in IE10.</p> <p>I've played with wicked-good-xpath, but I've bumped into issues with some forms of XPath. In addition if IE is never going to have XPath support again, I'd rather not be permenantly reliant on an external library, and find the next "best" thing to use instead.</p> <p>It's been pointed out that <a href="https://stackoverflow.com/a/3841239/130352">the selector API is now the recommended choice</a> instead. The problem I have with this though is that it primarily appears to be a HTML selection API (mostly as it grew out of CSS and as such it has special cases for class and ID attributes - there maybe other HTML-isms I've not yet seen).</p> <p>Thus is the selectors API sensible for processing XML documents? Given the lack of support in IE, the answer is probably "yes", but I can't see anything authoritative that gives a definite recommendation (or anti-recommendation).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload