html5lib.HTMLParser(html5lib.treebuilders.getTreeBuilder('dom'), strict=True).parseFragment('<img src="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/test.jpg">')
if the space between img
and src
is actually a \xa0
byte, then strict mode throws an
ParseError: Unexpected character after / in tag. Expected >
Error, which isn't very helpful.