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