You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor symfony#61347 [DomCrawler] [Tests] Adapt testAddHtmlContentWithErrors to be HTML5 compliant (renanrodrigo)
This PR was merged into the 6.4 branch.
Discussion
----------
[DomCrawler] [Tests] Adapt testAddHtmlContentWithErrors to be HTML5 compliant
| Q | A
| ------------- | ---
| Branch? |6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fixsymfony#61346
| License | MIT
- What it does and why it's needed
The new libxml2 uses HTML5 by default, and the current snippet used to test invalid HTML is HTML5-valid. This commit changes the snippet to be invalid both for HTML4 and HTML5, so the test passes.
- A simple example of how it works (include PHP, YAML, etc.)
- Running the test suite using a `php` build compiled against `libxml2` < `2.14` should keep working
- Running the test suite using a `php` build compiled against `libxml2` >= `2.14` should now work
- If it modifies existing behavior, include a before/after comparison
It does not.
Commits
-------
3c0410b [Tests] Adapt testAddHtmlContentWithErrors to be HTML5 compliant
0 commit comments