Skip to content

lxml walker raises IndexError on empty list #343

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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