Open glensc opened 3 years ago
The previousAll
method is not a method implemented in HtmlPageCrawler but it's inherited from the base Symfony\Component\DomCrawler\Crawler
class. So this problem is probably an upstream bug. Didn't find the time yet to investigate further...
Given this code:
this outputs:
but should output in dom order:
Seems the previousAll returns nodes in order closest to farthest rather first appearing in dom to last appearing in dom?