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