Skip to content

add link ( Xpath ) for css_selector.rst #13307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions components/css_selector.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Why to Use CSS selectors?
~~~~~~~~~~~~~~~~~~~~~~~~~

When you're parsing an HTML or an XML document, by far the most powerful
method is XPath.
method is `Xpath`_.

XPath expressions are incredibly flexible, so there is almost always an
XPath expression that will find the element you need. Unfortunately, they
Expand Down Expand Up @@ -77,7 +77,7 @@ You can use this expression with, for instance, :phpclass:`DOMXPath` or
Limitations of the CssSelector Component
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Not all CSS selectors can be converted to XPath equivalents.
Not all CSS selectors can be converted to `Xpath`_ equivalents.

There are several CSS selectors that only make sense in the context of a
web-browser.
Expand All @@ -102,3 +102,5 @@ Learn more

* :doc:`/testing`
* :doc:`/components/dom_crawler`

.. _`Xpath`: https://en.wikipedia.org/wiki/XPath