Skip to content

Should <selectedcontent> match :disabled? #12367

@emilio

Description

@emilio

Right now <selectedcontent> has an internal disabled flag: https://html.spec.whatwg.org/#the-selectedcontent-element:~:text=Every%20selectedcontent%20element%20has%20a%20boolean%20disabled%2C%20which%20is%20initially%20false

That's a bit confusing because there's already a "global" disabled flag for form controls which is :disabled / :enabled. Should it match those? Can we call it something else?

This came from a gecko review where it's very weird that IsDisabled() on a <selectedcontent> element would do something different than on any other element. But I guess it's not a huge deal?

cc @josepharhar @annevk

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions