From cf5826eba23483b77a84d662a9f3d9a22c4dcef6 Mon Sep 17 00:00:00 2001 From: Luke Warlow Date: Wed, 20 Mar 2024 19:42:16 +0000 Subject: [PATCH] Upstream IDL changes from Trusted Types (#78) innerHTML, outerHTML, insertAdjacentHTML, and createContextualFragment all now take HTMLString values Also add missing group and xref fields to respecConfig.js --- index.html | 14 ++++++++++---- respecConfig.js | 2 ++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 630274e..5fb1b5c 100644 --- a/index.html +++ b/index.html @@ -250,7 +250,7 @@

Extensibility

     interface mixin InnerHTML {
-      [CEReactions] attribute [LegacyNullToEmptyString] DOMString innerHTML;
+      [CEReactions] attribute [LegacyNullToEmptyString] HTMLString innerHTML;
     };
 
     Element includes InnerHTML;
@@ -305,8 +305,8 @@ 

Extensibility

     partial interface Element {
-      [CEReactions] attribute [LegacyNullToEmptyString] DOMString outerHTML;
-      [CEReactions] undefined insertAdjacentHTML(DOMString position, DOMString text);
+      [CEReactions] attribute [LegacyNullToEmptyString] HTMLString outerHTML;
+      [CEReactions] undefined insertAdjacentHTML(DOMString position, HTMLString text);
     };
   
@@ -482,7 +482,7 @@

Extensibility

     partial interface Range {
-      [CEReactions, NewObject] DocumentFragment createContextualFragment(DOMString fragment);
+      [CEReactions, NewObject] DocumentFragment createContextualFragment(HTMLString fragment);
     };
   
@@ -1765,6 +1765,12 @@

Dependencies

+ + The Trusted Types [[TRUSTED-TYPES]] specification defines: + +
diff --git a/respecConfig.js b/respecConfig.js index a054135..5700f99 100644 --- a/respecConfig.js +++ b/respecConfig.js @@ -7,9 +7,11 @@ var respecConfig = { { name: "Travis Leithead", company: "Microsoft", mailto: "travis.leithead@microsoft.com", companyURL: "http://www.microsoft.com", w3cid: "40117" } ], edDraftURI: "https://w3c.github.io/DOM-Parsing/", + xref: ["webidl", "html"], //format: "markdown", shortName: "DOM-Parsing", wg: ["Web Platform Working Group"], + group: "wg/webapps", wgURI: ["https://www.w3.org/WebPlatform/WG/"], license: "w3c-software-doc", wgPublicList: "www-dom",