',
expected: 'tag:"div",{},[tag:"a",{},[tag:"b",{},[tag:"u",{},[tag:"i",{},[tag:"code",{},[]]]]],tag:"u",{},[tag:"i",{},[tag:"code",{},[tag:"div",{},[tag:"a",{},[]]]]]]'
test_parser name: "html5lib aaa 16 (correctly nested 4b)", \
html: '
xy',
expected: 'tag:"b",{},[tag:"b",{},[tag:"b",{},[tag:"b",{},[text:"x"]]]],text:"y"'
test_parser name: "html5lib aaa 17 (formatting, implied /p, noah's ark)", \
html: '
x',
expected: 'tag:"p",{},[tag:"b",{},[tag:"b",{},[tag:"b",{},[tag:"b",{},[]]]]],tag:"p",{},[tag:"b",{},[tag:"b",{},[tag:"b",{},[text:"x"]]]]'
test_parser name: "variation on html5lib aaa 17 (with attributes in various orders)", \
html: '
x',
expected: 'tag:"p",{},[tag:"b",{"c":"d","e":"f"},[tag:"b",{"c":"d","e":"f"},[tag:"b",{"c":"d","e":"f"},[tag:"b",{"c":"d","e":"f"},[]]]]],tag:"p",{},[tag:"b",{"c":"d","e":"f"},[tag:"b",{"c":"d","e":"f"},[tag:"b",{"c":"d","e":"f"},[text:"x"]]]]'
test_parser name: "junk after attribute close-quote", \
html: '
foo
x',
expected: 'tag:"p",{},[tag:"b",{",":"","c":"d","e":"f"},[text:"foo"]],tag:"p",{},[tag:"b",{",":"","c":"d","e":"f"},[text:"x"]]'
test_parser name: "html5lib aaa02 1", \
html: '12
34',
expected: 'tag:"b",{},[text:"1",tag:"i",{},[text:"2"]],tag:"i",{},[tag:"p",{},[tag:"b",{},[text:"3"],text:"4"]]'
test_parser name: "html5lib aaa02 2", \
html: '',
expected: 'tag:"a",{},[],tag:"div",{},[tag:"a",{},[tag:"style",{},[]],tag:"address",{},[tag:"a",{},[],tag:"a",{},[]]]'
test_parser name: "html5lib tables 1", \
html: '',
expected: 'tag:"table",{},[tag:"tbody",{},[tag:"tr",{},[tag:"th",{},[]]]]'
test_parser name: "html5lib tables 2", \
html: '',
expected: 'tag:"table",{},[tag:"tbody",{},[tag:"tr",{},[tag:"td",{},[]]]]'
test_parser name: "html5lib tables 3", \
html: "",
expected: 'tag:"table",{},[tag:"colgroup",{},[tag:"col",{"foo":"bar"},[]]]'
test_parser name: "html5lib tables 4", \
html: 'foo',
expected: 'text:"foo",tag:"table",{},[tag:"colgroup",{},[]]'
test_parser name: "html5lib tables 5", \
html: 'foo',
expected: 'tag:"table",{},[],tag:"p",{},[text:"foo"]'
test_parser name: "html5lib tables 6", \
html: ' ',
expected: 'tag:"table",{},[tag:"tbody",{},[tag:"tr",{},[tag:"td",{},[]]]]'
test_parser name: "html5lib tables 7", \
html: '',
expected: 'tag:"select",{},[tag:"option",{},[text:"3"]],tag:"table",{},[]'
test_parser name: "html5lib tables 8", \
html: '',
expected: 'tag:"select",{},[],tag:"table",{},[],tag:"table",{},[]'
test_parser name: "html5lib tables 9", \
html: '',
expected: 'tag:"select",{},[],tag:"table",{},[]'
test_parser name: "html5lib tables 10", \
html: '',
expected: 'tag:"select",{},[tag:"option",{},[text:"A"]],tag:"table",{},[tag:"tbody",{},[tag:"tr",{},[tag:"td",{},[text:"B"]]]]'
test_parser name: "html5lib tables 11", \
html: ' |
|
|