Skip to content

Commit cf5826e

Browse files
authored
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
1 parent 18eec2d commit cf5826e

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

index.html

+10-4
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ <h2>Extensibility</h2>
250250

251251
<pre class="idl">
252252
interface mixin InnerHTML {
253-
[CEReactions] attribute [LegacyNullToEmptyString] DOMString innerHTML;
253+
[CEReactions] attribute [LegacyNullToEmptyString] HTMLString innerHTML;
254254
};
255255

256256
Element includes InnerHTML;
@@ -305,8 +305,8 @@ <h2>Extensibility</h2>
305305

306306
<pre class="idl">
307307
partial interface Element {
308-
[CEReactions] attribute [LegacyNullToEmptyString] DOMString outerHTML;
309-
[CEReactions] undefined insertAdjacentHTML(DOMString position, DOMString text);
308+
[CEReactions] attribute [LegacyNullToEmptyString] HTMLString outerHTML;
309+
[CEReactions] undefined insertAdjacentHTML(DOMString position, HTMLString text);
310310
};
311311
</pre>
312312

@@ -482,7 +482,7 @@ <h2>Extensibility</h2>
482482

483483
<pre class="idl">
484484
partial interface Range {
485-
[CEReactions, NewObject] DocumentFragment createContextualFragment(DOMString fragment);
485+
[CEReactions, NewObject] DocumentFragment createContextualFragment(HTMLString fragment);
486486
};
487487
</pre>
488488

@@ -1765,6 +1765,12 @@ <h2>Dependencies</h2>
17651765
<ul>
17661766
<li>The <dfn data-lt="LegacyNullToEmptyString"><a href="https://heycam.github.io/webidl/#LegacyNullToEmptyString">[LegacyNullToEmptyString]</a></dfn> IDL <a>extended attribute</a>
17671767
</ul>
1768+
1769+
The Trusted Types [[TRUSTED-TYPES]] specification defines:
1770+
1771+
<ul>
1772+
<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>
1773+
</ul>
17681774
</section>
17691775

17701776
<section class=appendix>

respecConfig.js

+2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ var respecConfig = {
77
{ name: "Travis Leithead", company: "Microsoft", mailto: "[email protected]", companyURL: "http://www.microsoft.com", w3cid: "40117" }
88
],
99
edDraftURI: "https://w3c.github.io/DOM-Parsing/",
10+
xref: ["webidl", "html"],
1011
//format: "markdown",
1112
shortName: "DOM-Parsing",
1213
wg: ["Web Platform Working Group"],
14+
group: "wg/webapps",
1315
wgURI: ["https://www.w3.org/WebPlatform/WG/"],
1416
license: "w3c-software-doc",
1517
wgPublicList: "www-dom",

0 commit comments

Comments
 (0)