Skip to content

Clarify IDL reflection for closedby attribute #10945

@keithamus

Description

@keithamus

What is the issue with the HTML Standard?

Preamble

In #10737 we added the closedby attribute. This is an enumerated attribute limited to known values, where the missing/invalid state is the auto state. The auto state does not have a keyword.

The spec states:

The closedBy IDL attribute must reflect the closedby content attribute, limited to only known values.

Root issue

Limited to known values declares that if a state like auto has no corresponding keyword, then the empty string must be returned. However Chrome and the WPTs expect something different (all of these were tested on Chrome canary).

This matches the values represented in the algorithm computed closed-by-state but the closedby reflection rules don't mention this.

Next steps

I think the following paths forward exist for us:

  1. Alter the WPTs and Chrome's behaviour to return "" (the empty string) when closedby is in the auto state.
  2. Alter the spec to properly clarify that the closedby attribute does not do simple reflection, and instead reflects the computed state.

Of course I could be missing something, in which case this issue could be closed.

/cc @mfreed7 @domenic

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions