Re: [whatwg/dom] Add declarative Shadow DOM features (#892)

@mfreed7 commented on this pull request.



> @@ -4271,7 +4287,10 @@ invoked, must run these steps:
  "{{NotSupportedError!!exception}}" {{DOMException}}.
 
  <li><p>Return a <a lt="clone a node">clone</a> of <a>this</a>, with the
- <i>clone children flag</i> set if <var>deep</var> is true.
+ <i>clone children flag</i> set if <var>deep</var> is true, and the
+ <i>clone shadows flag</i> set if <a>this</a> is a {{DocumentFragment}} whose

Yeah, I don't disagree that this is a bit odd. But it's necessary (or something similar) to allow a "normal" `<template>` element to contain a declarative shadow root and get cloned properly into DOM. If you have suggestions for how to better implement that capability, I'm open to them!

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

Message ID: <whatwg/dom/pull/892/review/1127436342@github.com>

Received on Friday, 30 September 2022 23:56:36 UTC