Skip to content

HTMLAttributes specificity #105

@chronoDave

Description

@chronoDave

Forgo currently exports one list of HTMLAttributes which applies to all elements in HTMLElementTagNameMap (with exception of HTMLMarqueeElement, which is unused). Not all attributes listed in HTMLAttributes apply to all elements, making it possible for invalid properties to exist on certain elements.

For example, acceptCharset is only valid on form.

Is there a possibility for these properties to be more specific?

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