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
1010
1111Like jQuery, the Crawler has methods to traverse the DOM of an HTML/XML
1212document. 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::
1414
1515 $newCrawler = $crawler->filter('input[type=submit]')
1616 ->last()
17- ->parents ()
17+ ->ancestors ()
1818 ->first()
1919 ;
2020
@@ -36,8 +36,8 @@ Many other methods are also available:
3636 All following siblings.
3737``previousAll() ``
3838 All preceding siblings.
39- ``parents () ``
40- Returns the parent nodes.
39+ ``ancestors () ``
40+ Returns the ancestor nodes.
4141``children() ``
4242 Returns children nodes.
4343``reduce($lambda) ``
You can’t perform that action at this time.
0 commit comments