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

Commitdc9b303

Browse files
author
Edward Z. Yang ext:(%22)
committed
Fix comparison bug, and fix bad name.
1 parent8e6d677 commitdc9b303

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎library/HTML5/TreeConstructer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2420,7 +2420,7 @@ public function emitToken($token, $mode = null) {
24202420
/* If the current node is an optgroup element, then pop that node
24212421
from the stack of open elements. Otherwise, this is a parse error,
24222422
ignore the token. */
2423-
if(end($this->stack) ==='optgroup') {
2423+
if(end($this->stack)->tagName ==='optgroup') {
24242424
array_pop($this->stack);
24252425
}else {
24262426
// parse error
@@ -2988,9 +2988,9 @@ private function clearStackToTableContext($elements) {
29882988
a table element or an html element, pop elements from the stack of open
29892989
elements. */
29902990
while(true) {
2991-
$node =end($this->stack)->tagName;
2991+
$name =end($this->stack)->tagName;
29922992

2993-
if(in_array($node,$elements)) {
2993+
if(in_array($name,$elements)) {
29942994
break;
29952995
}else {
29962996
array_pop($this->stack);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp