/[suikacvs]/markup/html/whatpm/t/tokenizer/test4.test
Suika

Diff of /markup/html/whatpm/t/tokenizer/test4.test

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by wakaba, Fri Mar 28 14:14:25 2008 UTC revision 1.6 by wakaba, Sat Oct 4 17:16:02 2008 UTC
# Line 44  Line 44 
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='&#x0020; 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"}]]},
# Line 78  Line 86 
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",
# Line 122  Line 130 
130    
131  {"description":"Maximum non-BMP numeric entity",  {"description":"Maximum non-BMP numeric entity",
132  "input":"&#X10FFFF;",  "input":"&#X10FFFF;",
133  "output":[["Character", "\uDBFF\uDFFF"]]},  "output":["ParseError", ["Character", "\uFFFD"]]},
134    
135  {"description":"Above maximum numeric entity",  {"description":"Above maximum numeric entity",
136  "input":"&#x110000;",  "input":"&#x110000;",
# Line 182  Line 190 
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/>",
# Line 276  Line 284 
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\">",
# Line 284  Line 292 
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  ]}  ]}

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.6

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24