{"tests": [ {"description":"Commented close tag in RCDATA or RAWTEXT", "initialStates":["RCDATA state", "RAWTEXT state"], "lastStartTag":"xmp", "input":"foo", "output":[["Character", "foo"], ["EndTag", "xmp"]]}, {"description":"Bogus comment in RCDATA or RAWTEXT", "initialStates":["RCDATA state", "RAWTEXT state"], "lastStartTag":"xmp", "input":"foobaz", "output":[["Character", "foobaz"], ["EndTag", "xmp"]]}, {"description":"End tag surrounded by bogus comment in RCDATA or RAWTEXT", "initialStates":["RCDATA state", "RAWTEXT state"], "lastStartTag":"xmp", "input":"foobaz", "output":[["Character", "foo"], ["EndTag", "xmp"], "ParseError", ["Comment", ""], ["Character", "baz"], ["EndTag", "xmp"]]}, {"description":"Commented entities in RCDATA", "initialStates":["RCDATA state"], "lastStartTag":"xmp", "input":" & & ", "output":[["Character", " & & "], ["EndTag", "xmp"]]}, {"description":"Incorrect comment ending sequences in RCDATA or RAWTEXT", "initialStates":["RCDATA state", "RAWTEXT state"], "lastStartTag":"xmp", "input":"foox--<>", "output":[["Character", "foox--<>"], ["EndTag", "xmp"]]} ]}