1 |
wakaba |
1.1 |
{"tests": [ |
2 |
|
|
|
3 |
|
|
{"description":"Commented close tag in [R]CDATA", |
4 |
|
|
"contentModelFlags":["RCDATA", "CDATA"], |
5 |
wakaba |
1.4 |
"lastStartTag":"pre", |
6 |
|
|
"input":"foo<!--</pre>--></pre>", |
7 |
|
|
"output":[["Character", "foo<!--</pre>-->"], ["EndTag", "pre"]]}, |
8 |
wakaba |
1.1 |
|
9 |
|
|
{"description":"Bogus comment in [R]CDATA", |
10 |
|
|
"contentModelFlags":["RCDATA", "CDATA"], |
11 |
wakaba |
1.4 |
"lastStartTag":"pre", |
12 |
|
|
"input":"foo<!-->baz</pre>", |
13 |
|
|
"output":[["Character", "foo<!-->baz"], ["EndTag", "pre"]]}, |
14 |
wakaba |
1.1 |
|
15 |
|
|
{"description":"End tag surrounded by bogus comment in [R]CDATA", |
16 |
|
|
"contentModelFlags":["RCDATA", "CDATA"], |
17 |
wakaba |
1.4 |
"lastStartTag":"pre", |
18 |
|
|
"input":"foo<!--></pre><!-->baz</pre>", |
19 |
|
|
"output":[["Character", "foo<!-->"], ["EndTag", "pre"], "ParseError", ["Comment", ""], ["Character", "baz"], ["EndTag", "pre"]]}, |
20 |
wakaba |
1.2 |
|
21 |
|
|
{"description":"Commented entities in RCDATA", |
22 |
|
|
"contentModelFlags":["RCDATA"], |
23 |
wakaba |
1.4 |
"lastStartTag":"pre", |
24 |
|
|
"input":" & <!-- & --> & </pre>", |
25 |
|
|
"output":[["Character", " & <!-- & --> & "], ["EndTag", "pre"]]}, |
26 |
wakaba |
1.3 |
|
27 |
|
|
{"description":"Incorrect comment ending sequences in [R]CDATA", |
28 |
|
|
"contentModelFlags":["RCDATA", "CDATA"], |
29 |
wakaba |
1.4 |
"lastStartTag":"pre", |
30 |
|
|
"input":"foo<!-- x --x>x-- >x--!>x--<></pre>", |
31 |
|
|
"output":[["Character", "foo<!-- x --x>x-- >x--!>x--<></pre>"]]} |
32 |
wakaba |
1.1 |
|
33 |
|
|
]} |