We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aad73db commit 093fc3bCopy full SHA for 093fc3b
2 files changed
src/HTML5/Parser/DOMTreeBuilder.php
@@ -475,7 +475,7 @@ public function endTag($name)
475
$lname = $this->normalizeTagName($name);
476
477
// Special case within 12.2.6.4.7: An end tag whose tag name is "br" should be treated as an opening tag
478
- if ($name === 'br') {
+ if ('br' === $name) {
479
$this->parseError('Closing tag encountered for void element br.');
480
481
$this->startTag('br');
test/HTML5/Parser/DOMTreeBuilderTest.php
@@ -718,7 +718,7 @@ public function testIAudioInParagraph()
718
719
public function testClosingBr()
720
{
721
- $html = <<<EOM
+ $html = <<<EOM
722
<!DOCTYPE html>
723
<html>
724
<head>
0 commit comments