Open danthedeckie opened 4 years ago
html5lib.HTMLParser(html5lib.treebuilders.getTreeBuilder('dom'), strict=True).parseFragment('<img src="/test.jpg">')
if the space between img and src is actually a \xa0 byte, then strict mode throws an
img
src
\xa0
ParseError: Unexpected character after / in tag. Expected >
Error, which isn't very helpful.
if the space between
img
andsrc
is actually a\xa0
byte, then strict mode throws anError, which isn't very helpful.