Re: [webcomponents] When is the slotting algorithm run (#401)

In that case, I'd suggest writing two algorithms.  One that finds (slot name, slot element) pairs in a given node tree and another one that creates a list of (slot name, list of assigned nodes) from the child nodes of a shadow host.

The first algorithm is implemented in WebKit at:
http://trac.webkit.org/browser/trunk/Source/WebCore/dom/SlotAssignment.cpp#L187

The second algorithm is implemented in WebKit at:
http://trac.webkit.org/browser/trunk/Source/WebCore/dom/SlotAssignment.cpp#L217

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/401#issuecomment-190641156

Received on Tuesday, 1 March 2016 09:57:42 UTC