-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
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).
- A dialog which is closed returns the string
"none" - A dialog which is open (non modal) returns the string
"none" - A dialog which is open as modal returns the string
"closerequest"
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:
- Alter the WPTs and Chrome's behaviour to return
""(the empty string) whenclosedbyis in the auto state. - Alter the spec to properly clarify that the
closedbyattribute 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.