Skip to content

Commit a0aff95

Browse files
committed
fix: Properly handle end tags in table body
1 parent 347206c commit a0aff95

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/parse5/lib/parser/index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3069,8 +3069,14 @@ function endTagInTableBody<T extends TreeAdapterTypeMap>(p: Parser<T>, token: Ta
30693069
p._processToken(token);
30703070
}
30713071
} else if (
3072-
(tn !== $.BODY && tn !== $.CAPTION && tn !== $.COL && tn !== $.COLGROUP) ||
3073-
(tn !== $.HTML && tn !== $.TD && tn !== $.TH && tn !== $.TR)
3072+
tn !== $.BODY &&
3073+
tn !== $.CAPTION &&
3074+
tn !== $.COL &&
3075+
tn !== $.COLGROUP &&
3076+
tn !== $.HTML &&
3077+
tn !== $.TD &&
3078+
tn !== $.TH &&
3079+
tn !== $.TR
30743080
) {
30753081
endTagInTable(p, token);
30763082
}

0 commit comments

Comments
 (0)