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:
- Alter the WPTs and Chrome's behaviour to return
"" (the empty string) when closedby is in the auto state.
- 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
What is the issue with the HTML Standard?
Preamble
In #10737 we added the
closedbyattribute. This is an enumerated attribute limited to known values, where the missing/invalid state is theautostate. Theautostate does not have a keyword.The spec states:
Root issue
Limited to known values declares that if a state like
autohas 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)."none""none""closerequest"This matches the values represented in the algorithm
computed closed-by-statebut theclosedbyreflection rules don't mention this.Next steps
I think the following paths forward exist for us:
""(the empty string) whenclosedbyis in the auto state.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.
/cc @mfreed7 @domenic