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

I don't think that works. You need to a way to specify where in DOM tree the assigned nodes would go.  e.g. if you had `<div slot="slotName"><img><br></div>` then where in div are assigned nodes supposed to go?  This behaves identically to `<slot name="slotName"><img><br></slot>`, then your proposal doesn't accomplish anything beyond replacing a `slot` element with a `slot` attribute or a equivalent JS API that returns a regular element into a slot.  And turning an arbitrary element into a `slot` element is an extremely complicated operation that at least we, WebKit, are not wiling to implement.

-- 
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-254649911

Received on Tuesday, 18 October 2016 21:50:48 UTC