Skip to content

[perf]: The correct behavior for the parser. #34

Description

@Scrum

The correct behavior for the parser would be throwing an error in the case where unclosed tags are met, instead of silently returning wrongly parsed HTML. Otherwise that's really confusing from the level of dependent packages like posthtml-include.

I'd add that test case:

<include src="a.html"/>
<include src="b.html"/>

Otherwise I've spent, like, ~2 hours figuring that out, somebody else can get trapped there too.

Originally posted by @dy in #23 (comment)

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