Skip to content

XPath Dependency #2

@ScottFreeCode

Description

@ScottFreeCode

Most browsers these days have XPath built in, and apparently at one time Internet Explorer had XPath builtin using a different interface than the now standard one (it probably predated the standard as usual). However, since then the API shim for IE's non-standard XPath interface no longer works. These links suggest XPath was removed from IE at some point (or at least that this way of getting to it no longer works -- or maybe what this library was using to get it never worked? I can never tell with non-standard extensions):
http://stackoverflow.com/questions/13521554/dom-level-3-xpath-in-internet-explorer
http://stackoverflow.com/questions/15743049/xpath-incompatible-with-internet-explorer

As far as I can tell, what this comes down to is that to use Tranjsform and have it be compatible with some versions of IE a third-party XPath library that supplies document.evaluate is needed (that or there's a hidden dependency on acquiring your DOM pieces the "right" way so that they'll include the IE-specific XPath functions, but there's nothing more brittle than hidden dependencies like that, so I'm going to assume the library solution is a better option). Frankly, I don't mind that. But -- and this is the part I'm opening this issue for -- it would be helpful to document it at least (maybe suggest good JS XPath libraries; I used the WGX suggested in the links above and did fine). (It also may require some code tweaks to work with a library solution without breaking other browsers' builtin solutions; I have these as part of a set of IE fixes submitted by pull request #3.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions