Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\xa0 not interpreted as a space. #124

Open
danthedeckie opened this issue Dec 16, 2019 · 0 comments
Open

\xa0 not interpreted as a space. #124

danthedeckie opened this issue Dec 16, 2019 · 0 comments

Comments

@danthedeckie
Copy link

    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

    ParseError: Unexpected character after / in tag. Expected >

Error, which isn't very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant