Skip to content

Parsing correctly formatted self closing tags causes nesting bug #189

Closed
@arriesbrendan

Description

@arriesbrendan

Description

When parsing in elements like [<div /><div />, <path /><path />, etc] causes the program to nest the elements instead of placing them as siblings.

What should happen

html = "<path /><path />"
parse(html) = <path /><path /> OR <path></path><path></path>

What happens instead

html = "<path /><path />"
parse(html) = <path><path><path /><path />

Steps to Reproduce

Parse in any self closing tags back to back, the error doesn't happen when parsing a single tag only multiple in succession.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions