Re: [whatwg/dom] Don't allow adopting DocumentFragment of a template element (#744)

Ah great, Firefox throws and Chrome and Safari do not change the node document:
```js
test(() => {
  const doc1 = new Document(),
        doc2 = new Document(),
        div1 = doc1.appendChild(document.createElement("div")),
        div2 = doc2.appendChild(document.createElement("div")),
        shadow = div1.attachShadow({mode: "closed"});
  div2.appendChild(shadow);
  assert_equals(shadow.ownerDocument, doc2);
});
```
(My replace all example is a little misleading as currently that can only be invoked with newly created nodes at the moment, but append/pre-insert has the same issue.)

-- 
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/744#issuecomment-480282207

Received on Friday, 5 April 2019 13:49:48 UTC