Skip to content

Update dom_crawler.rst #14191

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
Sep 7, 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: 3 additions & 3 deletions components/dom_crawler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ Using XPath expressions, you can select specific nodes within the document::

``DOMXPath::query`` is used internally to actually perform an XPath query.

If you prefer CSS selectors over XPath, install the CssSelector component.
It allows you to use jQuery-like selectors to traverse::
If you prefer CSS selectors over XPath, install :doc:`/components/css_selector`.
It allows you to use jQuery-like selectors::

$crawler = $crawler->filter('body > p');

Expand All @@ -109,7 +109,7 @@ An anonymous function can be used to filter with more complex criteria::
return ($i % 2) == 0;
});

To remove a node the anonymous function must return false.
To remove a node, the anonymous function must return ``false``.

.. note::

Expand Down