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

yuzhe-han 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.

bicknellr@,

After some considering and discussing it with masonfreed@, we decided it's better to preserve the fallback content behavior. So for a shadow root, regardless of whether slotAssignment is manual or auto, the fallback behavior is identical. 

I've since removed this section in the explainer doc. Thanks again for your review. 

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

Received on Monday, 16 March 2020 20:27:59 UTC