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

We'd really like to see this as well. Additionally, we've come across a case where we wanted the assigned `textContent`: an auto-sizing textarea component that needs to support the use of `<slot>`.

I think we ultimately want Shadow DOM-aware variations of `children`, `childNodes`, and `textContent`, and think it might be best to take care of all of them at the same time.

We could have a uniform map of regular DOM property -> Shadow DOM-aware property:
* `children` -> `assignedChildren`
* `childNodes` -> `assignedChildNodes`
* `textContent` -> `assignedTextContent`. This joins together the `textContent` of all assigned nodes, just as if they were light DOM child nodes.

These would all be invoked on the host HTML element, not the slot.

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

Received on Monday, 16 January 2017 22:34:27 UTC