Skip to content

Commit c7f03f5

Browse files
Merge branch '6.4' into 7.3
* 6.4: [Tests] Adapt testAddHtmlContentWithErrors to be HTML5 compliant
2 parents 9d3b7c6 + e6cad90 commit c7f03f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Symfony/Component/DomCrawler/Tests/NativeParserCrawlerTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,16 @@ public function testAddHtmlContentWithErrors()
2929
<head>
3030
</head>
3131
<body>
32-
<nav><a href="#"><a href="#"></nav>
32+
<div><a href="#"></div>
33+
</body>
3334
</body>
3435
</html>
3536
EOF
3637
, 'UTF-8');
3738

3839
$errors = libxml_get_errors();
3940
$this->assertCount(1, $errors);
40-
$this->assertEquals("Tag nav invalid\n", $errors[0]->message);
41+
$this->assertEquals("Unexpected end tag : body\n", $errors[0]->message);
4142

4243
libxml_clear_errors();
4344
libxml_use_internal_errors($internalErrors);

0 commit comments

Comments
 (0)