From 6f8f99d0d0e1a5f5f8ca90895c47f2f790ce507c Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Thu, 5 Nov 2020 14:17:04 -0800 Subject: [PATCH] Change declarative Shadow DOM fragment parsing to be opt-in This CL implements most of the suggestions from [1], which effectively block declarative Shadow DOM from being used by any fragment parser entry point, unless an explicit opt-in is toggled. The opt-ins include: - DOMParser.allowDeclarativeShadowDom = true; - HTMLTemplateElement.allowDeclarativeShadowDom = true; - XMLHttpRequest.allowDeclarativeShadowDom = true; - DocumentFragment.allowDeclarativeShadowDom = true; - Document.allowDeclarativeShadowDom = true; // For innerHTML - A new + diff --git a/shadow-dom/declarative/support/declarative-child-frame.html b/shadow-dom/declarative/support/declarative-child-frame.html new file mode 100644 index 00000000000000..10608b4875e0bd --- /dev/null +++ b/shadow-dom/declarative/support/declarative-child-frame.html @@ -0,0 +1,23 @@ +
+
+
+ +
+
+
+ + \ No newline at end of file