| 8 |
"input":"<z x=<", |
"input":"<z x=<", |
| 9 |
"output":["ParseError", ["StartTag", "z", {"x": "<"}]]}, |
"output":["ParseError", ["StartTag", "z", {"x": "<"}]]}, |
| 10 |
|
|
| 11 |
|
{"description":"= in unquoted attribute value", |
| 12 |
|
"input":"<z z=z=z>", |
| 13 |
|
"output":["ParseError", ["StartTag", "z", {"z": "z=z"}]]}, |
| 14 |
|
|
| 15 |
|
{"description":"= attribute", |
| 16 |
|
"input":"<z =>", |
| 17 |
|
"output":["ParseError", ["StartTag", "z", {"=": ""}]]}, |
| 18 |
|
|
| 19 |
|
{"description":"== attribute", |
| 20 |
|
"input":"<z ==>", |
| 21 |
|
"output":["ParseError", ["StartTag", "z", {"=": ""}]]}, |
| 22 |
|
|
| 23 |
|
{"description":"=== attribute", |
| 24 |
|
"input":"<z ===>", |
| 25 |
|
"output":["ParseError", "ParseError", ["StartTag", "z", {"=": "="}]]}, |
| 26 |
|
|
| 27 |
|
{"description":"==== attribute", |
| 28 |
|
"input":"<z ====>", |
| 29 |
|
"output":["ParseError", "ParseError", "ParseError", ["StartTag", "z", {"=": "=="}]]}, |
| 30 |
|
|
| 31 |
|
{"description":"Allowed \" after ampersand in attribute value", |
| 32 |
|
"input":"<z z=\"&\">", |
| 33 |
|
"output":[["StartTag", "z", {"z": "&"}]]}, |
| 34 |
|
|
| 35 |
|
{"description":"Non-allowed ' after ampersand in attribute value", |
| 36 |
|
"input":"<z z=\"&'\">", |
| 37 |
|
"output":["ParseError", ["StartTag", "z", {"z": "&'"}]]}, |
| 38 |
|
|
| 39 |
|
{"description":"Allowed ' after ampersand in attribute value", |
| 40 |
|
"input":"<z z='&'>", |
| 41 |
|
"output":[["StartTag", "z", {"z": "&"}]]}, |
| 42 |
|
|
| 43 |
|
{"description":"Non-allowed \" after ampersand in attribute value", |
| 44 |
|
"input":"<z z='&\"'>", |
| 45 |
|
"output":["ParseError", ["StartTag", "z", {"z": "&\""}]]}, |
| 46 |
|
|
| 47 |
|
{"description":"Attribute name starting with \"", |
| 48 |
|
"input":"<foo \"='bar'>", |
| 49 |
|
"output":["ParseError", ["StartTag", "foo", {"\"": "bar"}]]}, |
| 50 |
|
|
| 51 |
|
{"description":"Attribute name starting with '", |
| 52 |
|
"input":"<foo '='bar'>", |
| 53 |
|
"output":["ParseError", ["StartTag", "foo", {"'": "bar"}]]}, |
| 54 |
|
|
| 55 |
|
{"description":"Attribute name containing \"", |
| 56 |
|
"input":"<foo a\"b='bar'>", |
| 57 |
|
"output":["ParseError", ["StartTag", "foo", {"a\"b": "bar"}]]}, |
| 58 |
|
|
| 59 |
|
{"description":"Attribute name containing '", |
| 60 |
|
"input":"<foo a'b='bar'>", |
| 61 |
|
"output":["ParseError", ["StartTag", "foo", {"a'b": "bar"}]]}, |
| 62 |
|
|
| 63 |
|
{"description":"Unquoted attribute value containing '", |
| 64 |
|
"input":"<foo a=b'c>", |
| 65 |
|
"output":["ParseError", ["StartTag", "foo", {"a": "b'c"}]]}, |
| 66 |
|
|
| 67 |
|
{"description":"Unquoted attribute value containing \"", |
| 68 |
|
"input":"<foo a=b\"c>", |
| 69 |
|
"output":["ParseError", ["StartTag", "foo", {"a": "b\"c"}]]}, |
| 70 |
|
|
| 71 |
|
{"description":"Double-quoted attribute value not followed by whitespace", |
| 72 |
|
"input":"<foo a=\"b\"c>", |
| 73 |
|
"output":["ParseError", ["StartTag", "foo", {"a": "b", "c": ""}]]}, |
| 74 |
|
|
| 75 |
|
{"description":"Single-quoted attribute value not followed by whitespace", |
| 76 |
|
"input":"<foo a='b'c>", |
| 77 |
|
"output":["ParseError", ["StartTag", "foo", {"a": "b", "c": ""}]]}, |
| 78 |
|
|
| 79 |
|
{"description":"Quoted attribute followed by permitted /", |
| 80 |
|
"input":"<br a='b'/>", |
| 81 |
|
"output":[["StartTag", "br", {"a": "b"}]]}, |
| 82 |
|
|
| 83 |
|
{"description":"Quoted attribute followed by non-permitted /", |
| 84 |
|
"input":"<bar a='b'/>", |
| 85 |
|
"output":["ParseError", ["StartTag", "bar", {"a": "b"}]]}, |
| 86 |
|
|
| 87 |
{"description":"CR EOF after doctype name", |
{"description":"CR EOF after doctype name", |
| 88 |
"input":"<!doctype html \r", |
"input":"<!doctype html \r", |
| 89 |
"output":["ParseError", ["DOCTYPE", "html", null, null, false]]}, |
"output":["ParseError", ["DOCTYPE", "html", null, null, false]]}, |