Skip to content

Commit cb385c0

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: [DomCrawler] Replace parents() by ancestors()
2 parents 8dbfce1 + e5d192d commit cb385c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testing/dom_crawler.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ Traversing
1010

1111
Like jQuery, the Crawler has methods to traverse the DOM of an HTML/XML
1212
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::
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)``

0 commit comments

Comments
 (0)