@@ -21,27 +21,27 @@ selects the last one on the page, and then selects its immediate ancestor elemen
21
21
Many other methods are also available:
22
22
23
23
``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
25
25
Symfony's :doc: `CSS Selector component </components/css_selector >`).
26
26
``filterXpath('h1') ``
27
- Selects nodes matching the given `XPath expression `_.
27
+ Finds nodes matching the given `XPath expression `_.
28
28
``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).
30
30
``first() ``
31
- Selects the first node (equivalent to ``eq(0) ``).
31
+ Returns the first node (equivalent to ``eq(0) ``).
32
32
``last() ``
33
- Selects the last node.
33
+ Returns the last node.
34
34
``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).
36
36
``nextAll() ``
37
- Selects all following siblings (same parent, after the current node).
37
+ Returns all following siblings (same parent, after the current node).
38
38
``previousAll() ``
39
- Selects all preceding siblings (same parent, before the current node).
39
+ Returns all preceding siblings (same parent, before the current node).
40
40
``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> ``
42
42
element).
43
43
``children() ``
44
- Selects all direct child nodes of the current node.
44
+ Returns all direct child nodes of the current node.
45
45
``reduce($lambda) ``
46
46
Filters the nodes using a callback; keeps only those for which it returns ``true ``.
47
47
0 commit comments