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

lxml fails with null byte in attribute value #33

Closed
gsnedders opened this issue May 1, 2013 · 0 comments
Closed

lxml fails with null byte in attribute value #33

gsnedders opened this issue May 1, 2013 · 0 comments
Assignees
Labels
Milestone

Comments

@gsnedders
Copy link
Member

From Google Code 186:

>>> html5lib.parse("<p val=\"hu\x00\">", treebuilder="lxml")
Traceback (most recent call last):
...
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
@ghost ghost assigned gsnedders May 4, 2013
gsnedders pushed a commit that referenced this issue May 4, 2013
In several places we were only checking for null in the state's
if-statement and not breaking out of charsUntil for it.
gsnedders pushed a commit that referenced this issue May 4, 2013
In several places we were only checking for null in the state's
if-statement and not breaking out of charsUntil for it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant