OLD | NEW |
(Empty) | |
| 1 {"tests": [ |
| 2 |
| 3 {"description":"Commented close tag in RCDATA or RAWTEXT", |
| 4 "initialStates":["RCDATA state", "RAWTEXT state"], |
| 5 "lastStartTag":"xmp", |
| 6 "input":"foo<!--</xmp>--></xmp>", |
| 7 "output":[["Character", "foo<!--"], ["EndTag", "xmp"], ["Character", "-->"], ["E
ndTag", "xmp"]]}, |
| 8 |
| 9 {"description":"Bogus comment in RCDATA or RAWTEXT", |
| 10 "initialStates":["RCDATA state", "RAWTEXT state"], |
| 11 "lastStartTag":"xmp", |
| 12 "input":"foo<!-->baz</xmp>", |
| 13 "output":[["Character", "foo<!-->baz"], ["EndTag", "xmp"]]}, |
| 14 |
| 15 {"description":"End tag surrounded by bogus comment in RCDATA or RAWTEXT", |
| 16 "initialStates":["RCDATA state", "RAWTEXT state"], |
| 17 "lastStartTag":"xmp", |
| 18 "input":"foo<!--></xmp><!-->baz</xmp>", |
| 19 "output":[["Character", "foo<!-->"], ["EndTag", "xmp"], "ParseError", ["Comment"
, ""], ["Character", "baz"], ["EndTag", "xmp"]]}, |
| 20 |
| 21 {"description":"Commented entities in RCDATA", |
| 22 "initialStates":["RCDATA state"], |
| 23 "lastStartTag":"xmp", |
| 24 "input":" & <!-- & --> & </xmp>", |
| 25 "output":[["Character", " & <!-- & --> & "], ["EndTag", "xmp"]]}, |
| 26 |
| 27 {"description":"Incorrect comment ending sequences in RCDATA or RAWTEXT", |
| 28 "initialStates":["RCDATA state", "RAWTEXT state"], |
| 29 "lastStartTag":"xmp", |
| 30 "input":"foo<!-- x --x>x-- >x--!>x--<></xmp>", |
| 31 "output":[["Character", "foo<!-- x --x>x-- >x--!>x--<>"], ["EndTag", "xmp"]]} |
| 32 |
| 33 ]} |
OLD | NEW |