Skip to content

lxml fails with null byte in attribute value #33

Closed
@gsnedders

Description

@gsnedders

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions