Skip to content

Commit 10e872c

Browse files
committed
Update descriptions
1 parent 449fd99 commit 10e872c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

testing/dom_crawler.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,27 @@ selects the last one on the page, and then selects its immediate ancestor elemen
2121
Many other methods are also available:
2222

2323
``filter('h1.title')``
24-
Selects nodes that match the given CSS selector (which must be supported by
24+
Finds nodes that match the given CSS selector (which must be supported by
2525
Symfony's :doc:`CSS Selector component </components/css_selector>`).
2626
``filterXpath('h1')``
27-
Selects nodes matching the given `XPath expression`_.
27+
Finds nodes matching the given `XPath expression`_.
2828
``eq(1)``
29-
Selects the node at the given index (``0`` is the first node).
29+
Returns the node at the given index (``0`` is the first node).
3030
``first()``
31-
Selects the first node (equivalent to ``eq(0)``).
31+
Returns the first node (equivalent to ``eq(0)``).
3232
``last()``
33-
Selects the last node.
33+
Returns the last node.
3434
``siblings()``
35-
Selects all sibling nodes (nodes with the same parent, excluding the current node).
35+
Returns all sibling nodes (nodes with the same parent, excluding the current node).
3636
``nextAll()``
37-
Selects all following siblings (same parent, after the current node).
37+
Returns all following siblings (same parent, after the current node).
3838
``previousAll()``
39-
Selects all preceding siblings (same parent, before the current node).
39+
Returns all preceding siblings (same parent, before the current node).
4040
``ancestors()``
41-
Selects all ancestor nodes (parents, grandparents, etc., up to the ``<html>``
41+
Returns all ancestor nodes (parents, grandparents, etc., up to the ``<html>``
4242
element).
4343
``children()``
44-
Selects all direct child nodes of the current node.
44+
Returns all direct child nodes of the current node.
4545
``reduce($lambda)``
4646
Filters the nodes using a callback; keeps only those for which it returns ``true``.
4747

0 commit comments

Comments
 (0)