[removed] use xpath in jQuery

前端 未结 8 1363
耶瑟儿~
耶瑟儿~ 2020-12-14 10:16

I have, for example, the next XPath query:

//div[span=\"something\"]/parent::div/child::div[@class=\\\"someClass\\\"]

I want to use this XP

8条回答
  •  醉话见心
    2020-12-14 10:21

    There is no Cross-browser implementation as far as I know. There is a xpath plugin for jQuery which says is still in developement.

    Other than that there is a Google-authored pure JavaScript implementation of the DOM Level 3 XPath specification called wicked-good-xpath which is good.

提交回复
热议问题