summaryrefslogtreecommitdiff
path: root/tests/html5lib-tests/tokenizer/unicodeCharsProblematic.test
blob: 3ddb96c011b77706b80ff98f54bc4b1288bc8cf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{"tests" : [
{"description": "Invalid Unicode character U+DFFF",
"doubleEscaped":true,
"input": "\\uDFFF",
"output":[["Character", "\\uDFFF"]],
"errors":[
    { "code": "surrogate-in-input-stream", "line": 1, "col": 1 }
]},

{"description": "Invalid Unicode character U+D800",
"doubleEscaped":true,
"input": "\\uD800",
"output":[["Character", "\\uD800"]],
"errors":[
    { "code": "surrogate-in-input-stream", "line": 1, "col": 1 }
]},

{"description": "Invalid Unicode character U+DFFF with valid preceding character",
"doubleEscaped":true,
"input": "a\\uDFFF",
"output":[["Character", "a\\uDFFF"]],
"errors":[
    { "code": "surrogate-in-input-stream", "line": 1, "col": 2 }
]},

{"description": "Invalid Unicode character U+D800 with valid following character",
"doubleEscaped":true,
"input": "\\uD800a",
"output":[["Character", "\\uD800a"]],
"errors":[
    { "code": "surrogate-in-input-stream", "line": 1, "col": 1 }
]},

{"description":"CR followed by U+0000",
"input":"\r\u0000",
"output":[["Character", "\n\u0000"]],
"errors":[
    { "code": "unexpected-null-character", "line": 2, "col": 1 }
]}
]
}