Skip to content

Commit

Permalink
fix: End tags in the 'in row' insertion mode were not properly ignored
Browse files Browse the repository at this point in the history
The condition would always be `true`.
  • Loading branch information
fb55 committed Jan 7, 2022
1 parent d57563e commit dc4e269
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/parse5/lib/parser/index.js
Expand Up @@ -3070,8 +3070,13 @@ function endTagInRow(p, token) {
}
default:
if (
(tn !== $.BODY && tn !== $.CAPTION && tn !== $.COL && tn !== $.COLGROUP) ||
(tn !== $.HTML && tn !== $.TD && tn !== $.TH)
tn !== $.BODY &&
tn !== $.CAPTION &&
tn !== $.COL &&
tn !== $.COLGROUP &&
tn !== $.HTML &&
tn !== $.TD &&
tn !== $.TH
) {
endTagInTable(p, token);
}
Expand Down

0 comments on commit dc4e269

Please sign in to comment.