Skip to content

Keep attributes in sync example is dubious #573

@annevk

Description

@annevk

https://w3ctag.github.io/design-principles/#html-idl-must-by-synced

A counterpattern to this guidance can be found in input’s value, option’s selected, and input’s checked where the HTML attributes were never updated and the IDL attribute was the single source of truth.

The problem with these attributes is not that they are not reflected, the problem is that the IDL attributes have a wildly different name. E.g., value is reflected as defaultValue.

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