Skip to content

lxml walker raises IndexError on empty list #343

Open
@indivisible

Description

@indivisible

The lxml treewalker throws an IndexError if given an empty list.

This is a problem because with the lxml TreeBuilder parseFragment will produce an empty list for an empty input string, making spacial handling necessary compared to other tree types.

Demonstration of the bug.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions