File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ Traversing
10
10
11
11
Like jQuery, the Crawler has methods to traverse the DOM of an HTML/XML
12
12
document. For example, the following finds all ``input[type=submit] `` elements,
13
- selects the last one on the page, and then selects its immediate parent element::
13
+ selects the last one on the page, and then selects its immediate ancestor element::
14
14
15
15
$newCrawler = $crawler->filter('input[type=submit]')
16
16
->last()
17
- ->parents ()
17
+ ->ancestors ()
18
18
->first()
19
19
;
20
20
@@ -36,8 +36,8 @@ Many other methods are also available:
36
36
All following siblings.
37
37
``previousAll() ``
38
38
All preceding siblings.
39
- ``parents () ``
40
- Returns the parent nodes.
39
+ ``ancestors () ``
40
+ Returns the ancestor nodes.
41
41
``children() ``
42
42
Returns children nodes.
43
43
``reduce($lambda) ``
You can’t perform that action at this time.
0 commit comments