Skip to content

\xa0 not interpreted as a space. #124

Open
@danthedeckie

Description

@danthedeckie
    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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions