[whatwg/dom] "A slot has an associated name (a string)" seems to be kept in sync manually (#690)

https://dom.spec.whatwg.org/commit-snapshots/28cdb47e557c814fcca60759f4cce43e9c0e9a47/#shadow-tree-slots

> A slot has an associated name \(a string\)\. Unless stated otherwise it is the empty string\.

It appears that the attribute change steps keep the concept of a slot's name in sync with the name="" attribute on the slot element. This seems fragile and unlikely to match implementations. (For example, it is not obviously to me that things will be properly synchronized if any of the early-return paths are taken inside the attribute change steps.)

Instead, I think HTML should define that for slots defined by `<slot>` attributes, their name is given by the value of the `name=""` content attribute, or the empty string if the attribute is not present.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/690

Received on Sunday, 9 September 2018 19:45:11 UTC