| 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 |
|
|
{"description":"End tag with incorrect name in RCDATA or CDATA", |
| 15 |
|
|
"contentModelFlags":["RCDATA", "CDATA"], |
| 16 |
|
|
"lastStartTag":"baz", |
| 17 |
|
|
"input":"</foo>bar</baz>", |
| 18 |
wakaba |
1.2 |
"output":[["Character", "</foo>bar"], ["EndTag", "baz"]]}, |
| 19 |
wakaba |
1.1 |
|
| 20 |
|
|
{"description":"End tag closing RCDATA or CDATA, switching back to PCDATA", |
| 21 |
|
|
"contentModelFlags":["RCDATA", "CDATA"], |
| 22 |
|
|
"lastStartTag":"bar", |
| 23 |
|
|
"input":"foo</bar></baz>", |
| 24 |
|
|
"output":[["Character", "foo"], ["EndTag", "bar"], ["EndTag", "baz"]]}, |
| 25 |
|
|
|
| 26 |
|
|
{"description":"CDATA w/ something looking like an entity", |
| 27 |
|
|
"contentModelFlags":["CDATA"], |
| 28 |
|
|
"input":"&foo;", |
| 29 |
|
|
"output":[["Character", "&foo;"]]}, |
| 30 |
|
|
|
| 31 |
|
|
{"description":"RCDATA w/ an entity", |
| 32 |
|
|
"contentModelFlags":["RCDATA"], |
| 33 |
|
|
"input":"<", |
| 34 |
|
|
"output":[["Character", "<"]]} |
| 35 |
|
|
|
| 36 |
|
|
]} |