Different results selecting HTML elements with XPath in Firefox and Internet Explorer

后端 未结 10 729
-上瘾入骨i
-上瘾入骨i 2021-01-18 10:34

I\'m trying to select a specific HTML element in a document, for firefox i just use:

xpathobj = document.evaluate(xpath, document, null,
               XPath         


        
10条回答
  •  走了就别回头了
    2021-01-18 11:27

    I can not find a simple and common solution, you can write custom function to implement a little of xpath but it is hard to get complete in internet explorer 6 or lower version....

提交回复
热议问题