Skip to content

Commit d09047a

Browse files
authored
fix: text token type in V_EXPRESSION_DATA state (#257)
1 parent 519d2ba commit d09047a

File tree

5 files changed

+567
-2
lines changed

5 files changed

+567
-2
lines changed

src/html/tokenizer.ts

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy