Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit120e332

Browse files
author
Edward Z. Yang ext:(%22)
committed
Fix broken end tag algorithm.
1 parente0b3824 commit120e332

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)

[8]ページ先頭

©2009-2025 Movatter.jp