What browsers support Xpath 2.0?

后端 未结 4 1839
孤街浪徒
孤街浪徒 2020-12-03 06:48

I have recently been working with XPath and have been searching for information on which browsers support XPath 2.0 without much luck. The best I could find was the query te

4条回答
  •  渐次进展
    2020-12-03 07:34

    I do not know of any, and the official list of implementations doesn't include one either.

    An alternative - of course less performant than a native implementation - would be XQIB which is an XQuery implementation in JavaScript. XPath 2.0 is fully included as a subset in XQuery 1.0, so you will be able to use all XPath 2.0 features (and more) in all browsers with JavaScript support.

    A short sample taken from their website on how to use it:

    
    
    

提交回复
热议问题