[whatwg/dom] Cloning of a document does not copy "allow declarative shadow roots" (Issue #1366)

annevk created an issue (whatwg/dom#1366)

### What is the issue with the DOM Standard?

Although it seems to happen in WebKit and Chromium anyway.

https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E.%0A%3Cscript%3E%0Adoc%20%3D%20document.cloneNode(document)%3B%0Adoc.write(%27%3Cdiv%3E%3Ctemplate%20shadowrootmode%3Dopen%3Etest%3C%2Ftemplate%3E%3C%2Fdiv%3E%27)%3B%0Aw(doc.body.firstChild.shadowRoot)%3B%0A%3C%2Fscript%3E

Given that we copy other state this should probably be copied as well.

cc @smaug---- @mfreed7 @rniwa 

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

Message ID: <whatwg/dom/issues/1366@github.com>

Received on Monday, 7 April 2025 14:52:22 UTC