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

Adopt entry points:

* `adoptNode(documentFragmentWithNonNullHost)`: `ShadowRoot` has a guard, `<template>`'s contents do not; ideally these would have the same guard but per OP this might not be web-compatible. So we'd throw for `ShadowRoot` and return early for the other...
* `appendChild(documentFragmentWithNonNullHost)`: Firefox has a guard, others do not, weird handling as per https://github.com/whatwg/dom/issues/744#issuecomment-480282207
* `replaceChild(documentFragmentWithNonNullHost)`: ?
* replace all; no primitive that can trigger this yet, but #478 might add one.

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

Received on Monday, 15 April 2019 13:14:49 UTC