- From: Trey Shugart <notifications@github.com>
- Date: Sun, 06 Nov 2016 14:30:05 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Sunday, 6 November 2016 22:30:43 UTC
Totally, just clarifying that point. You could create a mixin / base class to provide this behaviour to all of your components you need it for (for now at least) until this is rectified. ```js class BaseComponent extends HTMLElement { get defaultSlottedElements () { return Array.prototype.filter.call( this.shadowRoot.querySelector('slot:not([name])').assignedNodes(), e => e.nodeType === Node.ELEMENT_NODE ); } } ``` -- 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/602#issuecomment-258716165
Received on Sunday, 6 November 2016 22:30:43 UTC