Re: [w3c/webcomponents] Shadow DOM Example 1 without slot attribute applied, select by class (#626)

Thanks, however, I wont fix this, as you proposed.

> storyList.querySelectorAll('il.breaking').forEach(function(element) {element.slot = 'breaking';});

I am afraid that this would mislead the usage of slots, which should have a declarative nature.
e.g. If we append host's children later, after the shadow tree is created, inserted elements are never assigned to a slot, in a proposed approach.
Thus, I am not a fan of adding slot attribute to host's children in an imperative way, in our example, because people might think that this is a recommended approach. 

-- 
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/626#issuecomment-281561029

Received on Wednesday, 22 February 2017 03:49:14 UTC