From 3c0961083e1c72089d8dac1a804fd2ea96779823 Mon Sep 17 00:00:00 2001 From: Daniel Vogelheim Date: Thu, 23 Feb 2023 15:07:52 +0100 Subject: [PATCH] Recurse into shadow roots. This proposes to recurse into any shadow roots. This follows the discussion at https://github.com/WICG/sanitizer-api/issues/185 --- index.bs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.bs b/index.bs index 28d3ca0..319b848 100644 --- a/index.bs +++ b/index.bs @@ -797,6 +797,9 @@ algorithm collects these in one place.
To handle funky elements on a given |element|, run these steps: + 1. If |element| is a [=shadow host=]: + 1. Run the steps of [=sanitize a document fragment=] algorithm on + |element|'s [=Element/shadow root=]. 1. If |element|'s [=Element/namespace=] [=is=] [=HTML namespace|HTML=] and the [=Element/local name=] [=is=] `"template"`: 1. Run the steps of the [=sanitize a document fragment=] algorithm on