Closed
Description
The DomCrawler seems to take the first node and traverse up the tree until the root node. But i think that the selection can have different parents, when i saw the function description i would expect it gets the parent of each node in the selection. So with 5 nodes selected i would get 5 parents, of which some could be the same parent (an array of 5 references of which some references to the same object). My suggestion would be to introduce another method with the functionality just described. About naming the methods i'm not sure yet.'
symfony/src/Symfony/Component/DomCrawler/Crawler.php
Lines 469 to 492 in b85ab60