Skip to content

Commit

Permalink
Upstream IDL changes from Trusted Types (#78)
Browse files Browse the repository at this point in the history
innerHTML, outerHTML, insertAdjacentHTML, and createContextualFragment all now take HTMLString values

Also add missing group and xref fields to respecConfig.js
  • Loading branch information
lukewarlow authored Mar 20, 2024
1 parent 18eec2d commit cf5826e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 10 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ <h2>Extensibility</h2>

<pre class="idl">
interface mixin InnerHTML {
[CEReactions] attribute [LegacyNullToEmptyString] DOMString innerHTML;
[CEReactions] attribute [LegacyNullToEmptyString] HTMLString innerHTML;
};

Element includes InnerHTML;
Expand Down Expand Up @@ -305,8 +305,8 @@ <h2>Extensibility</h2>

<pre class="idl">
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);
};
</pre>

Expand Down Expand Up @@ -482,7 +482,7 @@ <h2>Extensibility</h2>

<pre class="idl">
partial interface Range {
[CEReactions, NewObject] DocumentFragment createContextualFragment(DOMString fragment);
[CEReactions, NewObject] DocumentFragment createContextualFragment(HTMLString fragment);
};
</pre>

Expand Down Expand Up @@ -1765,6 +1765,12 @@ <h2>Dependencies</h2>
<ul>
<li>The <dfn data-lt="LegacyNullToEmptyString"><a href="https://heycam.github.io/webidl/#LegacyNullToEmptyString">[LegacyNullToEmptyString]</a></dfn> IDL <a>extended attribute</a>
</ul>

The Trusted Types [[TRUSTED-TYPES]] specification defines:

<ul>
<li>The <dfn data-lt="HTMLString"><a href="https://w3c.github.io/trusted-types/dist/spec/#typedefdef-htmlstring">HTMLString</a></dfn> IDL <a>typedef</a>
</ul>
</section>

<section class=appendix>
Expand Down
2 changes: 2 additions & 0 deletions respecConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit cf5826e

Please sign in to comment.