Re: [whatwg/dom] replaceChild() has odd mutation observer behavior after #754 (#814)

Thanks. Sigh this is hard.

So would reverting work, but then changing "adopt" in two ways:

1. We give it an additional argument "do it anyway"
2. Then we add 3.1.0 as a new step:
   > If "do it anyway" is false and _node_ is a DocumentFragment whose host is non-null, then continue.
   >
   > Note: This checks _node_ and not _inclusiveDescendant_ as ShadowRoot nodes are to be adopted, unless they are passed directly to adopt.

Then in the `template` element's adoption steps, we invoke "adopt" with "do it anyway" set to true.

cc @smaug---- @rniwa

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/814#issuecomment-573296035

Received on Saturday, 11 January 2020 08:37:30 UTC