Skip to content

Commit 40039f1

Browse files
committed
fix: text token type in V_EXPRESSION_DATA state
1 parent 9574d91 commit 40039f1

File tree

5 files changed

+567
-2
lines changed

5 files changed

+567
-2
lines changed

src/html/tokenizer.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1892,9 +1892,9 @@ export class Tokenizer {
18921892
const type = isWhitespace(cp)
18931893
? "HTMLWhitespace"
18941894
: state === "RCDATA"
1895-
? "HTMLRawText"
1895+
? "HTMLRCDataText"
18961896
: state === "RAWTEXT"
1897-
? "HTMLRCDataText"
1897+
? "HTMLRawText"
18981898
: "HTMLText"
18991899
if (this.currentToken != null && this.currentToken.type !== type) {
19001900
this.endToken()

0 commit comments

Comments
 (0)