Skip to content

Commit dc4e269

Browse files
committed
fix: End tags in the 'in row' insertion mode were not properly ignored
The condition would always be `true`.
1 parent d57563e commit dc4e269

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

packages/parse5/lib/parser/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3070,8 +3070,13 @@ function endTagInRow(p, token) {
30703070
}
30713071
default:
30723072
if (
3073-
(tn !== $.BODY && tn !== $.CAPTION && tn !== $.COL && tn !== $.COLGROUP) ||
3074-
(tn !== $.HTML && tn !== $.TD && tn !== $.TH)
3073+
tn !== $.BODY &&
3074+
tn !== $.CAPTION &&
3075+
tn !== $.COL &&
3076+
tn !== $.COLGROUP &&
3077+
tn !== $.HTML &&
3078+
tn !== $.TD &&
3079+
tn !== $.TH
30753080
) {
30763081
endTagInTable(p, token);
30773082
}

0 commit comments

Comments
 (0)