Re: [w3c/webcomponents] Add an assignedElements() method (#602)

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