Skip to content

Commit f6a1b20

Browse files
committed
Fix #2: JSON has Unicode strings so a leading U+FEFF is not a BOM.
1 parent e65afbd commit f6a1b20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tokenizer/domjs.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
"output":["ParseError", ["Character", "\\uFFFD"]]
1919
},
2020
{
21-
"description":"skip first BOM but not later ones",
21+
"description":"leading U+FEFF must pass through",
2222
"input":"\uFEFFfoo\uFEFFbar",
23-
"output":[["Character", "foo\uFEFFbar"]]
23+
"output":[["Character", "\uFEFFfoo\uFEFFbar"]]
2424
},
2525
{
2626
"description":"Non BMP-charref in in RCDATA",

0 commit comments

Comments
 (0)