Commit e6cad90
committed
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 | Fix symfony#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 compliantFile tree
1 file changed
+3
-2
lines changed- src/Symfony/Component/DomCrawler/Tests
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
0 commit comments