document.evaluate - Cross browser?

后端 未结 3 1642
说谎
说谎 2020-12-31 07:13

I have been looking for a CSS selector function other than Sizzle and I have come across this function.

function SparkEn(xpath,root) {
  xpath = xpath
    .r         


        
3条回答
  •  抹茶落季
    2020-12-31 07:57

    It is a DOM3 W3C Working Group Note: http://www.w3.org/TR/2004/NOTE-DOM-Level-3-XPath-20040226/xpath.html#XPathEvaluator-evaluate

    Implementation status: https://developer.mozilla.org/en-US/docs/Web/API/document.evaluate#Browser_compatibility Today only not in IE 10 on latest stable desktop browsers.

提交回复
热议问题