Comparison of CSS Selectors and XPath - XPath 编辑
XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes
Draft
This page is not complete.
This article seeks to document the difference between CSS Selectors and XPath for web developers to be able to better choose the right tool for the right job.
XPath feature | CSS equivalent |
---|---|
ancestor , parent or preceding-sibling axis | :has() selector |
attribute axis | Attribute selectors |
child axis | Child combinator |
descendant axis | Descendant combinator |
following-sibling axis | General sibling combinator or adjacent sibling combinator |
self axis | :scope or :host selector |
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论