Skip to content

Fragile HTML parser -> create Debug bundle #75

@mindplay-dk

Description

@mindplay-dk

In this example, I didn't explicitly close a couple of <input> elements:

https://codesandbox.io/s/vigilant-goodall-hqh8u

That is, <input> and other HTML void elements seem to require a trailing slash, e.g. <input /> - but there is no error message when void elements aren't explicitly terminated, and you get some strange results in the DOM.

Is the parser XHTML by design?

Handling HTML 5 void elements shouldn't require much work, and shouldn't add much to the footprint, I think - I wrote a toy HTML 5 parser myself in 0.5 KB, and the magic is less than 100 bytes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions