Re: [w3c/webcomponents] [idea] Not having <slot> element get in the way of structure. (#589)

Not really any problems per se, but more about semantic meaning. In React (for example), the separation between content (HTML) and logic (distribution with JavaScript) is cleaner I think, that's all. Maybe things like `ParentNode.prototype.distributedChildren`, `ChildNode.prototype.distributedParent` (which is `null` in closed roots), and a `childdistributed` event would be more along the lines of the semantic separation, along with JS-only API to define distribution points. And the reason why JS-only API would be acceptable is because creating shadow roots is already JS-only to begin with.

Just thoughts, but knowing the web, the discussion here is probably moot since the API is already released.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/589#issuecomment-260426547

Received on Monday, 14 November 2016 18:56:18 UTC