Skip to content

compare selector with tag name about case-sensitivity #11794

@UnVuTWFu

Description

@UnVuTWFu

The spec says:

When comparing a CSS element type selector to the names of HTML elements in HTML documents, the CSS element type selector must first be converted to ASCII lowercase. The same selector when compared to other elements must be compared according to its original case. In both cases, to match, the values must be identical to each other (and therefore the comparison is case sensitive).

Is this mean CSS's syntax is lowercased, HTML's tag/attribute name is lowercased, and then a case-sensitive match is performed?If so,why not add a sentence to more clearly explain how it compare

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