Re: [w3c/webcomponents] Update Imperative-Shadow-DOM-Distribution-API.md (#866)

bicknellr commented on this pull request.



>  
-[To find a slot] for a given slotable *slotable* and an optional open flag (unset unless stated otherwise), run these steps:
+    1. Adopt node into parent’s node document.
+
+    2. If child is null, then append node to parent’s children.
+
+    3. Otherwise, insert node into parent’s children before child’s index.
+    
+    4. [Update Step] If parent is a shadow host, its shadow's `slotAssignment` is not "manual" and node is a slotable, then assign a slot for node.
+
+    5. [New Step] If parent's root is a shadow root, shadow's `slotAssignment` is "manual", and parent is a slot, throw exception.

Thanks for taking another look at this. I think that's the best option given that it makes the behavior the same in both cases and that slots' fallback content is very likely controlled by the same entity that would assign nodes.

-- 
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/pull/866#discussion_r393392909

Received on Tuesday, 17 March 2020 01:13:46 UTC