8000 Fix broken end tag algorithm. · Nimbleworks/html5lib-php@120e332 · GitHub
[go: up one dir, main page]

Skip to content

Commit 120e332

Browse files
author
Edward Z. Yang ext:(%22)
committed
Fix broken end tag algorithm.
1 parent e0b3824 commit 120e332

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/HTML5/TreeConstructer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1741,12 +1741,13 @@ public function emitToken($token, $mode = null) {
17411741
} else {
17421742
$category = $this->getElementCategory($node);
17431743

1744-
if($category !== self::SPECIAL && $category !== self::SCOPING) {
1744+
if($category !== self::FORMATTING && $category !== self::PHRASING) {
17451745
/* Otherwise, if node is in neither the formatting
17461746
category nor the phrasing category, then this is a
17471747
parse error. Stop this algorithm. The end tag token
17481748
is ignored. */
17491749
$this->ignored = true;
1750+
break;
17501751
// parse error
17511752
}
17521753
}

0 commit comments

Comments
 (0)
0