#658: Pre-CR review: DOM Review Draft — Published 21 June 2021
Discussions
Comment by @LeaVerou Dec 9, 2021 (See Github)
Hi @siusin,
@plinss and looked at this today during our virtual f2f.
We had some questions:
- We see references to a new "precustomized" state for custom elements, but we did not find a definition of what this state means, and how do you get there. It seems to be completely undefined.
- There is an "is available to element internals" flag, but no definition of what it means
- If
shadowRoot
is available to internals, is there a difference betweenthis.shadowRoot
andthis.internals.shadowRoot
or do they point to the same thing? - We see a new
delegatesFocus
property has been added onShadowRoot
, but there is no description of what it's supposed to do. By looking around we found this, but it's still unclear what use cases it solves and what exactly it does.
The rest of the changes seem fine.
Comment by @annevk Dec 10, 2021 (See Github)
Could you please file these as issues against whatwg/dom? Seems most of these should be easy to clarify with a couple of notes. Thanks!
Comment by @LeaVerou Dec 10, 2021 (See Github)
We posted them as questions here first in case they are explained somewhere in the spec and we just missed it. If not, we can definitely make new issues.
Comment by @annevk Dec 10, 2021 (See Github)
I think for "precustomized" there is a note that explains its purpose. It's essentially an implementation detail.
The others could do with some notes I think.
FWIW, this.internals.shadowRoot
can point to a closed shadow tree. In which case this.shadowRoot
would return null. In retrospect perhaps shadow roots should only have been exposed on custom elements, but not everyone is of that opinion.
Comment by @LeaVerou Feb 9, 2023 (See Github)
Hi @siusin, apologies for the late reply. We have provided some feedback above, but overall this looks good to us. We also understand this is widely implemented by now, which reduces the impact any review could have. Spec diffs are not an explainer, and do not contain the information we need to review.
Furthermore, after discussing this in a breakout today (present: @cynthia @rhiaro and me) we do not think it's productive to do such large reviews, at such a late stage. They demand a lot of resources, but it's too late for the effort to make a meaningful difference. Please instead ask for reviews of individual features earlier, before they are so widely implemented.
Comment by @annevk Feb 9, 2023 (See Github)
Will you still file issues for the desired clarifications?
Comment by @rhiaro Feb 9, 2023 (See Github)
I've copied Lea's questions over to the WHATWG DOM repo issues. Please feel free to close them if/when you resolve them without waiting for anything further from our end.
Comment by @annevk Feb 9, 2023 (See Github)
🙏🏻
OpenedJul 20, 2021
Ya ya yawm TAG!
I'm requesting a TAG review of DOM Review Draft — Published 21 June 2021.
The WHATWG published a new Review Draft of the DOM Standard on 21 June 2021. The HTML WG plans to take the latest Review Draft to W3C Recommendation in September, thus we are inviting another wide and horizontal review of the commits of the DOM Standard between Jun 2020 and Jun 2021.
Further details:
We put together a list of significant changes, please pay attention to these pull requests during your group discussion:
https://github.com/whatwg/dom/commit/12beda246fe9efa4d6dcb0545be81ba6a9529d87 DOM Events introduction: clarify how listeners are invoked
https://github.com/whatwg/dom/commit/f837ce19d0540bfba76e038070e006a33d419ba1 Add "precustomized" custom element state
https://github.com/whatwg/dom/commit/8c0049e8163693fe31d186f1d37937da091a6ffc Add "is available to element internals"
https://github.com/whatwg/dom/commit/52f7a52fe9d2acefee4203c6b53564e246c501be Need to catch exceptions to report them
https://github.com/whatwg/dom/commit/83037a112f3f78f071e9c3ad7d979e85dc7e7283 Add signal support to addEventListener()
https://github.com/whatwg/dom/commit/aa384af67fbf8862c5ee2ed09dc7afb6696a48ae Add AbortSignal.abort() static method
https://github.com/whatwg/dom/commit/c80cbf52b351609b3a107bb2d047d6377ffafbf9 Use a single exception for name validation (follow-up)
https://github.com/whatwg/dom/commit/acfe96ba18ae62a46c4509de7ab1dc26e122223d Add imperative slot assignment API
https://github.com/whatwg/dom/commit/d2c84ec3462fe01383d0274aab9e65d54e33eacd Add the IDL of XSLTProcessor
https://github.com/whatwg/dom/commit/f346858acfdb5ce30dfbad4c1383db2245b7f5ff Add ShadowRoot.prototype.delegatesFocus attribute