1 |
wakaba |
1.1 |
{"tests": [ |
2 |
|
|
|
3 |
|
|
{"description":"PLAINTEXT content model flag", |
4 |
|
|
"contentModelFlags":["PLAINTEXT"], |
5 |
|
|
"input":"<head>&body;", |
6 |
|
|
"output":[["Character", "<head>&body;"]]}, |
7 |
|
|
|
8 |
|
|
{"description":"End tag closing RCDATA or CDATA", |
9 |
|
|
"contentModelFlags":["RCDATA", "CDATA"], |
10 |
|
|
"lastStartTag":"bar", |
11 |
|
|
"input":"foo</bar>", |
12 |
|
|
"output":[["Character", "foo"], ["EndTag", "bar"]]}, |
13 |
|
|
|
14 |
wakaba |
1.3 |
{"description":"End tag closing RCDATA or CDATA (case-insensitivity)", |
15 |
|
|
"contentModelFlags":["RCDATA", "CDATA"], |
16 |
|
|
"lastStartTag":"bar", |
17 |
|
|
"input":"foo</bAr>", |
18 |
|
|
"output":[["Character", "foo"], ["EndTag", "bar"]]}, |
19 |
|
|
|
20 |
wakaba |
1.1 |
{"description":"End tag with incorrect name in RCDATA or CDATA", |
21 |
|
|
"contentModelFlags":["RCDATA", "CDATA"], |
22 |
|
|
"lastStartTag":"baz", |
23 |
|
|
"input":"</foo>bar</baz>", |
24 |
wakaba |
1.2 |
"output":[["Character", "</foo>bar"], ["EndTag", "baz"]]}, |
25 |
wakaba |
1.3 |
|
26 |
|
|
{"description":"End tag with incorrect name in RCDATA or CDATA (starting like correct name)", |
27 |
|
|
"contentModelFlags":["RCDATA", "CDATA"], |
28 |
|
|
"lastStartTag":"baz", |
29 |
|
|
"input":"</foo>bar</bazaar>", |
30 |
|
|
"output":[["Character", "</foo>bar</bazaar>"]]}, |
31 |
wakaba |
1.1 |
|
32 |
|
|
{"description":"End tag closing RCDATA or CDATA, switching back to PCDATA", |
33 |
|
|
"contentModelFlags":["RCDATA", "CDATA"], |
34 |
|
|
"lastStartTag":"bar", |
35 |
|
|
"input":"foo</bar></baz>", |
36 |
|
|
"output":[["Character", "foo"], ["EndTag", "bar"], ["EndTag", "baz"]]}, |
37 |
|
|
|
38 |
|
|
{"description":"CDATA w/ something looking like an entity", |
39 |
|
|
"contentModelFlags":["CDATA"], |
40 |
|
|
"input":"&foo;", |
41 |
|
|
"output":[["Character", "&foo;"]]}, |
42 |
|
|
|
43 |
|
|
{"description":"RCDATA w/ an entity", |
44 |
|
|
"contentModelFlags":["RCDATA"], |
45 |
|
|
"input":"<", |
46 |
|
|
"output":[["Character", "<"]]} |
47 |
|
|
|
48 |
|
|
]} |