How to access HTML element using XPath in IE8?

后端 未结 3 853
鱼传尺愫
鱼传尺愫 2020-12-21 09:00

I am stuck with as issue of accessing HTML element in IE using XPath in Javascript? I already tried with selectNodes() method but its for XML only, it does not work for XPat

3条回答
  •  孤城傲影
    2020-12-21 09:47

    You might also like this solution to add xpath support for HTML in IE:

    http://sourceforge.net/projects/html-xpath/

    This has the benefit of unifying the API between IE and other browsers, as well.

提交回复
热议问题