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

@rniwa commented on this pull request.



> @@ -5828,6 +5855,11 @@ dictionary ShadowRootInit {
   required ShadowRootMode mode;
   boolean delegatesFocus = false;
 };
+
+dictionary GetInnerHTMLOptions {
+  boolean includeShadowRoots = true;
+  sequence<ShadowRoot> closedRoots;

So that people don't accidentally use this variant instead of innerHTML. We really shouldn't be encouraging people to serialize contents of shadow roots. Just like `Element.prototype.shadowRoot` should only be used when it's absolutely necessary, this variant of innerHTML should only be used when it's absolutely necessary.

-- 
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/pull/892#discussion_r581563730

Received on Wednesday, 24 February 2021 02:08:42 UTC