From 560adb585c85182113581db060aada4ed44b309e Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Tue, 14 May 2024 14:40:58 +1000 Subject: [PATCH 1/4] Element.attachShadow() add sanitize option and rename param to options --- api/Element.json | 45 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 41 insertions(+), 4 deletions(-) diff --git a/api/Element.json b/api/Element.json index 65140ae772c9b2..3f052626aa10e4 100644 --- a/api/Element.json +++ b/api/Element.json @@ -2627,9 +2627,10 @@ "deprecated": false } }, - "init_clonable_parameter": { + "options_clonable_parameter": { "__compat": { - "description": "init.clonable parameter", + "description": "options.clonable parameter", + "mdn_url": "https://developer.mozilla.org/docs/Web/API/Element/attachShadow#clonable", "spec_url": "https://dom.spec.whatwg.org/#dom-shadowrootinit-clonable", "support": { "chrome": { @@ -2667,9 +2668,10 @@ } } }, - "init_delegatesFocus_parameter": { + "options_delegatesFocus_parameter": { "__compat": { - "description": "init.delegatesFocus parameter", + "description": "options.delegatesFocus parameter", + "mdn_url": "https://developer.mozilla.org/docs/Web/API/Element/attachShadow#delegatesfocus", "spec_url": "https://dom.spec.whatwg.org/#dom-shadowrootinit-delegatesfocus", "support": { "chrome": { @@ -2700,6 +2702,41 @@ "deprecated": false } } + }, + "options_serializable_parameter": { + "__compat": { + "description": "options.serializable parameter", + "mdn_url": "https://developer.mozilla.org/docs/Web/API/Element/attachShadow#serializable", + "spec_url": "https://dom.spec.whatwg.org/#dom-shadowrootinit-serializable", + "support": { + "chrome": { + "version_added": "125" + }, + "chrome_android": "mirror", + "edge": "mirror", + "firefox": { + "version_added": false + }, + "firefox_android": "mirror", + "ie": { + "version_added": false + }, + "oculus": "mirror", + "opera": "mirror", + "opera_android": "mirror", + "safari": { + "version_added": false + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": "mirror" + }, + "status": { + "experimental": true, + "standard_track": true, + "deprecated": false + } + } } }, "attributes": { From 912cf96eb0d22ae5b41bd1662ff3a1f54c39bc37 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Tue, 14 May 2024 15:08:50 +1000 Subject: [PATCH 2/4] HTMLTempateElement.serializable - add link to docs --- api/HTMLTemplateElement.json | 1 + 1 file changed, 1 insertion(+) diff --git a/api/HTMLTemplateElement.json b/api/HTMLTemplateElement.json index c6f13908a90436..131fe7dbcf1c21 100644 --- a/api/HTMLTemplateElement.json +++ b/api/HTMLTemplateElement.json @@ -184,6 +184,7 @@ }, "shadowRootSerializable": { "__compat": { + "mdn_url": "https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/shadowRootSerializable", "spec_url": "https://html.spec.whatwg.org/multipage/scripting.html#dom-template-shadowrootserializable", "support": { "chrome": { From 8b31ee3baaeeabdccbb2462b4172fb8c4ae16c90 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Tue, 14 May 2024 15:19:01 +1000 Subject: [PATCH 3/4] Add template shadowrootdelegatesfocus attribute and docs links --- html/elements/template.json | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/html/elements/template.json b/html/elements/template.json index 45d507034270bd..21bedb84ee4307 100644 --- a/html/elements/template.json +++ b/html/elements/template.json @@ -43,6 +43,8 @@ }, "shadowrootclonable": { "__compat": { + "mdn_url": "https://developer.mozilla.org/docs/Web/HTML/Element/template#shadowrootclonable", + "spec_url": "https://html.spec.whatwg.org/multipage/scripting.html#attr-template-shadowrootclonable", "support": { "chrome": { "version_added": "124" @@ -73,8 +75,43 @@ } } }, + "shadowrootdelegatesfocus": { + "__compat": { + "mdn_url": "https://developer.mozilla.org/docs/Web/HTML/Element/template#shadowrootdelegatesfocus", + "spec_url": "https://html.spec.whatwg.org/multipage/scripting.html#attr-template-shadowrootdelegatesfocus", + "support": { + "chrome": { + "version_added": "123" + }, + "chrome_android": "mirror", + "edge": "mirror", + "firefox": { + "version_added": "123" + }, + "firefox_android": "mirror", + "ie": { + "version_added": false + }, + "oculus": "mirror", + "opera": "mirror", + "opera_android": "mirror", + "safari": { + "version_added": false + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": "mirror" + }, + "status": { + "experimental": false, + "standard_track": true, + "deprecated": false + } + } + }, "shadowrootmode": { "__compat": { + "mdn_url": "https://developer.mozilla.org/docs/Web/HTML/Element/template#shadowrootmode", "spec_url": "https://html.spec.whatwg.org/multipage/scripting.html#attr-template-shadowrootmode", "tags": [ "web-features:declarative-shadow-dom" From 10453622d4ed2029af13a38d2b80595c945119d3 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Tue, 14 May 2024 15:21:51 +1000 Subject: [PATCH 4/4] Add template shadowrootserializable attribute and docs links --- html/elements/template.json | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/html/elements/template.json b/html/elements/template.json index 21bedb84ee4307..08447e3734804f 100644 --- a/html/elements/template.json +++ b/html/elements/template.json @@ -152,6 +152,40 @@ "deprecated": false } } + }, + "shadowrootserializable": { + "__compat": { + "mdn_url": "https://developer.mozilla.org/docs/Web/HTML/Element/template#shadowrootserializable", + "spec_url": "https://html.spec.whatwg.org/multipage/scripting.html#attr-template-shadowrootserializable", + "support": { + "chrome": { + "version_added": "125" + }, + "chrome_android": "mirror", + "edge": "mirror", + "firefox": { + "version_added": false + }, + "firefox_android": "mirror", + "ie": { + "version_added": false + }, + "oculus": "mirror", + "opera": "mirror", + "opera_android": "mirror", + "safari": { + "version_added": false + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": "mirror" + }, + "status": { + "experimental": true, + "standard_track": true, + "deprecated": false + } + } } } }