1 |
wakaba |
1.1 |
{"tests": [ |
2 |
|
|
|
3 |
|
|
{"description":"Commented close tag in [R]CDATA", |
4 |
|
|
"contentModelFlags":["RCDATA", "CDATA"], |
5 |
|
|
"lastStartTag":"bar", |
6 |
|
|
"input":"foo<!--</bar>--></bar>", |
7 |
|
|
"output":[["Character", "foo<!--</bar>-->"], ["EndTag", "bar"]]}, |
8 |
|
|
|
9 |
|
|
{"description":"Bogus comment in [R]CDATA", |
10 |
|
|
"contentModelFlags":["RCDATA", "CDATA"], |
11 |
|
|
"lastStartTag":"bar", |
12 |
|
|
"input":"foo<!-->baz</bar>", |
13 |
|
|
"output":[["Character", "foo<!-->baz"], ["EndTag", "bar"]]}, |
14 |
|
|
|
15 |
|
|
{"description":"End tag surrounded by bogus comment in [R]CDATA", |
16 |
|
|
"contentModelFlags":["RCDATA", "CDATA"], |
17 |
|
|
"lastStartTag":"bar", |
18 |
|
|
"input":"foo<!--></bar><!-->baz</bar>", |
19 |
|
|
"output":[["Character", "foo<!-->"], ["EndTag", "bar"], "ParseError", ["Comment", ""], ["Character", "baz"], ["EndTag", "bar"]]} |
20 |
|
|
|
21 |
|
|
]} |