44 |
"input":"<z z='&\"'>", |
"input":"<z z='&\"'>", |
45 |
"output":["ParseError", ["StartTag", "z", {"z": "&\""}]]}, |
"output":["ParseError", ["StartTag", "z", {"z": "&\""}]]}, |
46 |
|
|
47 |
|
{"description":"Text after bogus character reference", |
48 |
|
"input":"<z z='&xlink_xmlns;'>bar<z>", |
49 |
|
"output":["ParseError",["StartTag","z",{"z":"&xlink_xmlns;"}],["Character","bar"],["StartTag","z",{}]]}, |
50 |
|
|
51 |
|
{"description":"Text after hex character reference", |
52 |
|
"input":"<z z='  foo'>bar<z>", |
53 |
|
"output":[["StartTag","z",{"z":" foo"}],["Character","bar"],["StartTag","z",{}]]}, |
54 |
|
|
55 |
{"description":"Attribute name starting with \"", |
{"description":"Attribute name starting with \"", |
56 |
"input":"<foo \"='bar'>", |
"input":"<foo \"='bar'>", |
57 |
"output":["ParseError", ["StartTag", "foo", {"\"": "bar"}]]}, |
"output":["ParseError", ["StartTag", "foo", {"\"": "bar"}]]}, |
86 |
|
|
87 |
{"description":"Quoted attribute followed by permitted /", |
{"description":"Quoted attribute followed by permitted /", |
88 |
"input":"<br a='b'/>", |
"input":"<br a='b'/>", |
89 |
"output":[["StartTag", "br", {"a": "b"}]]}, |
"output":[["StartTag","br",{"a":"b"},true]]}, |
90 |
|
|
91 |
{"description":"Quoted attribute followed by non-permitted /", |
{"description":"Quoted attribute followed by non-permitted /", |
92 |
"input":"<bar a='b'/>", |
"input":"<bar a='b'/>", |
93 |
"output":["ParseError", ["StartTag", "bar", {"a": "b"}]]}, |
"output":[["StartTag","bar",{"a":"b"},true]]}, |
94 |
|
|
95 |
{"description":"CR EOF after doctype name", |
{"description":"CR EOF after doctype name", |
96 |
"input":"<!doctype html \r", |
"input":"<!doctype html \r", |
130 |
|
|
131 |
{"description":"Maximum non-BMP numeric entity", |
{"description":"Maximum non-BMP numeric entity", |
132 |
"input":"", |
"input":"", |
133 |
"output":[["Character", "\uDBFF\uDFFF"]]}, |
"output":["ParseError", ["Character", "\uFFFD"]]}, |
134 |
|
|
135 |
{"description":"Above maximum numeric entity", |
{"description":"Above maximum numeric entity", |
136 |
"input":"�", |
"input":"�", |
190 |
|
|
191 |
{"description":"Permitted slash", |
{"description":"Permitted slash", |
192 |
"input":"<br/>", |
"input":"<br/>", |
193 |
"output":[["StartTag", "br", {}]]}, |
"output":[["StartTag","br",{},true]]}, |
194 |
|
|
195 |
{"description":"Non-permitted slash", |
{"description":"Non-permitted slash", |
196 |
"input":"<xr/>", |
"input":"<xr/>", |
197 |
"output":["ParseError", ["StartTag", "xr", {}]]}, |
"output":[["StartTag","xr",{},true]]}, |
198 |
|
|
199 |
{"description":"Permitted slash but in close tag", |
{"description":"Permitted slash but in close tag", |
200 |
"input":"</br/>", |
"input":"</br/>", |
226 |
"output":["ParseError", "ParseError", ["Comment", "doc\uFFFD"]], |
"output":["ParseError", "ParseError", ["Comment", "doc\uFFFD"]], |
227 |
"ignoreErrorOrder":true}, |
"ignoreErrorOrder":true}, |
228 |
|
|
229 |
|
{"description":"U+0080 in lookahead region", |
230 |
|
"input":"<!doc\u0080", |
231 |
|
"output":["ParseError", "ParseError", ["Comment", "doc\u0080"]], |
232 |
|
"ignoreErrorOrder":true}, |
233 |
|
|
234 |
|
{"description":"U+FDD1 in lookahead region", |
235 |
|
"input":"<!doc\uFDD1", |
236 |
|
"output":["ParseError", "ParseError", ["Comment", "doc\uFDD1"]], |
237 |
|
"ignoreErrorOrder":true}, |
238 |
|
|
239 |
|
{"description":"U+1FFFF in lookahead region", |
240 |
|
"input":"<!doc\uD83F\uDFFF", |
241 |
|
"output":["ParseError", "ParseError", ["Comment", "doc\uD83F\uDFFF"]], |
242 |
|
"ignoreErrorOrder":true}, |
243 |
|
|
244 |
{"description":"CR followed by U+0000", |
{"description":"CR followed by U+0000", |
245 |
"input":"\r\u0000", |
"input":"\r\u0000", |
246 |
"output":["ParseError", ["Character", "\n\uFFFD"]], |
"output":["ParseError", ["Character", "\n\uFFFD"]], |
284 |
|
|
285 |
{"description":"Doctype publi", |
{"description":"Doctype publi", |
286 |
"input":"<!DOCTYPE html PUBLI", |
"input":"<!DOCTYPE html PUBLI", |
287 |
"output":["ParseError", "ParseError", ["DOCTYPE", "html", null, null, false]]}, |
"output":["ParseError", ["DOCTYPE", "html", null, null, false]]}, |
288 |
|
|
289 |
{"description":"Doctype sistem", |
{"description":"Doctype sistem", |
290 |
"input":"<!DOCTYPE html SISTEM \"AbC\">", |
"input":"<!DOCTYPE html SISTEM \"AbC\">", |
292 |
|
|
293 |
{"description":"Doctype sys", |
{"description":"Doctype sys", |
294 |
"input":"<!DOCTYPE html SYS", |
"input":"<!DOCTYPE html SYS", |
295 |
"output":["ParseError", "ParseError", ["DOCTYPE", "html", null, null, false]]} |
"output":["ParseError", ["DOCTYPE", "html", null, null, false]]} |
296 |
|
|
297 |
]} |
]} |