You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.3 KiB
34 lines
1.3 KiB
6 years ago
|
{"tests": [
|
||
|
|
||
|
{"description":"Commented close tag in RCDATA or RAWTEXT",
|
||
|
"initialStates":["RCDATA state", "RAWTEXT state"],
|
||
|
"lastStartTag":"xmp",
|
||
|
"input":"foo<!--</xmp>--></xmp>",
|
||
|
"output":[["Character", "foo<!--"], ["EndTag", "xmp"], ["Character", "-->"], ["EndTag", "xmp"]]},
|
||
|
|
||
|
{"description":"Bogus comment in RCDATA or RAWTEXT",
|
||
|
"initialStates":["RCDATA state", "RAWTEXT state"],
|
||
|
"lastStartTag":"xmp",
|
||
|
"input":"foo<!-->baz</xmp>",
|
||
|
"output":[["Character", "foo<!-->baz"], ["EndTag", "xmp"]]},
|
||
|
|
||
|
{"description":"End tag surrounded by bogus comment in RCDATA or RAWTEXT",
|
||
|
"initialStates":["RCDATA state", "RAWTEXT state"],
|
||
|
"lastStartTag":"xmp",
|
||
|
"input":"foo<!--></xmp><!-->baz</xmp>",
|
||
|
"output":[["Character", "foo<!-->"], ["EndTag", "xmp"], "ParseError", ["Comment", ""], ["Character", "baz"], ["EndTag", "xmp"]]},
|
||
|
|
||
|
{"description":"Commented entities in RCDATA",
|
||
|
"initialStates":["RCDATA state"],
|
||
|
"lastStartTag":"xmp",
|
||
|
"input":" & <!-- & --> & </xmp>",
|
||
|
"output":[["Character", " & <!-- & --> & "], ["EndTag", "xmp"]]},
|
||
|
|
||
|
{"description":"Incorrect comment ending sequences in RCDATA or RAWTEXT",
|
||
|
"initialStates":["RCDATA state", "RAWTEXT state"],
|
||
|
"lastStartTag":"xmp",
|
||
|
"input":"foo<!-- x --x>x-- >x--!>x--<></xmp>",
|
||
|
"output":[["Character", "foo<!-- x --x>x-- >x--!>x--<>"], ["EndTag", "xmp"]]}
|
||
|
|
||
|
]}
|