{"tests": [ {"description":"PLAINTEXT content model flag", "initialStates":["PLAINTEXT state"], "lastStartTag":"plaintext", "input":"&body;", "output":[["Character", "&body;"]]}, {"description":"End tag closing RCDATA or RAWTEXT", "initialStates":["RCDATA state", "RAWTEXT state"], "lastStartTag":"xmp", "input":"foo", "output":[["Character", "foo"], ["EndTag", "xmp"]]}, {"description":"End tag closing RCDATA or RAWTEXT (case-insensitivity)", "initialStates":["RCDATA state", "RAWTEXT state"], "lastStartTag":"xmp", "input":"foo", "output":[["Character", "foo"], ["EndTag", "xmp"]]}, {"description":"End tag closing RCDATA or RAWTEXT (ending with space)", "initialStates":["RCDATA state", "RAWTEXT state"], "lastStartTag":"xmp", "input":"foobar", "output":[["Character", "bar"], ["EndTag", "xmp"]]}, {"description":"Partial end tags leading straight into partial end tags", "initialStates":["RCDATA state", "RAWTEXT state"], "lastStartTag":"xmp", "input":"", "output":[["Character", "bar", "output":[["Character", "bar"]]}, {"description":"End tag closing RCDATA or RAWTEXT, switching back to PCDATA", "initialStates":["RCDATA state", "RAWTEXT state"], "lastStartTag":"xmp", "input":"foo", "output":[["Character", "foo"], ["EndTag", "xmp"], ["EndTag", "baz"]]}, {"description":"RAWTEXT w/ something looking like an entity", "initialStates":["RAWTEXT state"], "lastStartTag":"xmp", "input":"&foo;", "output":[["Character", "&foo;"]]}, {"description":"RCDATA w/ an entity", "initialStates":["RCDATA state"], "lastStartTag":"textarea", "input":"<", "output":[["Character", "<"]]} ]}