Skip to content

HTML parsing is too case sensitive #341

Closed
@Conduitry

Description

@Conduitry

There are a number of case sensitivity issues with parsing HTML currently. What I've observed -

  • closing a tag with a different case than it was opened with triggers an error. It probably shouldn't
  • <script> and <style> elements only get their special processing when they are written in lowercase
  • the various void elements are only parsed correctly if they are written in lowercase, otherwise they expect a closing tag (!doctype causes an error #336)

It feels like these could all be resolved with a couple of well-placed .toLowerCase()s.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions