3 {"description":"PLAINTEXT content model flag",
4 "initialStates":["PLAINTEXT state"],
5 "lastStartTag":"plaintext",
6 "input":"<head>&body;",
7 "output":[["Character", "<head>&body;"]]},
9 {"description":"End tag closing RCDATA or RAWTEXT",
10 "initialStates":["RCDATA state", "RAWTEXT state"],
13 "output":[["Character", "foo"], ["EndTag", "xmp"]]},
15 {"description":"End tag closing RCDATA or RAWTEXT (case-insensitivity)",
16 "initialStates":["RCDATA state", "RAWTEXT state"],
19 "output":[["Character", "foo"], ["EndTag", "xmp"]]},
21 {"description":"End tag closing RCDATA or RAWTEXT (ending with space)",
22 "initialStates":["RCDATA state", "RAWTEXT state"],
25 "output":[["Character", "foo"], "ParseError"]},
27 {"description":"End tag closing RCDATA or RAWTEXT (ending with EOF)",
28 "initialStates":["RCDATA state", "RAWTEXT state"],
31 "output":[["Character", "foo</xmp"]]},
33 {"description":"End tag closing RCDATA or RAWTEXT (ending with slash)",
34 "initialStates":["RCDATA state", "RAWTEXT state"],
37 "output":[["Character", "foo"], "ParseError"]},
39 {"description":"End tag not closing RCDATA or RAWTEXT (ending with left-angle-bracket)",
40 "initialStates":["RCDATA state", "RAWTEXT state"],
43 "output":[["Character", "foo</xmp<"]]},
45 {"description":"End tag with incorrect name in RCDATA or RAWTEXT",
46 "initialStates":["RCDATA state", "RAWTEXT state"],
48 "input":"</foo>bar</xmp>",
49 "output":[["Character", "</foo>bar"], ["EndTag", "xmp"]]},
51 {"description":"Partial end tags leading straight into partial end tags",
52 "initialStates":["RCDATA state", "RAWTEXT state"],
54 "input":"</xmp</xmp</xmp>",
55 "output":[["Character", "</xmp</xmp"], ["EndTag", "xmp"]]},
57 {"description":"End tag with incorrect name in RCDATA or RAWTEXT (starting like correct name)",
58 "initialStates":["RCDATA state", "RAWTEXT state"],
60 "input":"</foo>bar</xmpaar>",
61 "output":[["Character", "</foo>bar</xmpaar>"]]},
63 {"description":"End tag closing RCDATA or RAWTEXT, switching back to PCDATA",
64 "initialStates":["RCDATA state", "RAWTEXT state"],
66 "input":"foo</xmp></baz>",
67 "output":[["Character", "foo"], ["EndTag", "xmp"], ["EndTag", "baz"]]},
69 {"description":"RAWTEXT w/ something looking like an entity",
70 "initialStates":["RAWTEXT state"],
73 "output":[["Character", "&foo;"]]},
75 {"description":"RCDATA w/ an entity",
76 "initialStates":["RCDATA state"],
77 "lastStartTag":"textarea",
79 "output":[["Character", "<"]]}