symfony/symfony — pull request #10935 by stof (2014-05-18 01:16:25+00:00)
Title: [DomCrawler] Fixed filterXPath() chaining loosing the parent DOM nodes

| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #10206
| License | MIT
| Doc PR | n/a

This is a fixed version of #10207, preserving the BC for XPath queries.

The example given in #10260 when reporting the regression in the previous attempt is covered by the new tests added in the first commit of the PR.
I also added many tests ensuring that the behavior is the same than in the current implementation.