Skip to content

Commit

Permalink
Merge pull request #460 from lukewarlow/trusted-types
Browse files Browse the repository at this point in the history
Upstream changes from Trusted Types
  • Loading branch information
lukewarlow authored May 14, 2024
2 parents e0fc88b + 96ed05c commit a0d59c7
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/execCommand/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,17 @@ <h3 id="enabled-commands">
<h2 id="methods-to-query-and-execute-commands">
Methods to query and execute commands
</h2>

<pre class="idl">
partial interface Document {
[CEReactions] boolean execCommand(DOMString commandId, optional boolean showUI = false, optional (TrustedHTML or DOMString) value = "");
};
</pre>

<p class="note">
TODO: Add IDL for queryCommand* functions.
</p>

<p class="note">
TODO: Define behavior for <var title="">show UI</var>.
</p>
Expand Down Expand Up @@ -12930,6 +12941,13 @@ <h3 id="the-inserthtml-command">
<a href="#action">Action</a>:
</p>
<ol>
<li>
<p>
Set <var>value</var> to the result of invoking <a href="https://w3c.github.io/trusted-types/dist/spec/#get-trusted-type-compliant-string-algorithm">
get trusted types compliant string</a> with <code class="external"><a href="https://w3c.github.io/trusted-types/dist/spec/#trusted-html">TrustedHTML</a></code>,
<a>this</a>'s <a>relevant global object</a>, <var>value</var>, "Document execCommand", and "script".
</p>
</li>
<li>
<div class="note">
<p>
Expand Down Expand Up @@ -15208,6 +15226,17 @@ <h3>
</p>
</section>
</section>
<section>
<h2 id="dependencies">
Dependencies
</h2>

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

<ul>
<li>The <dfn data-lt="TrustedHTML"><a href="https://w3c.github.io/trusted-types/dist/spec/#trustedhtml">TrustedHTML</a></dfn> IDL <a>interface</a>
</ul>
</section>
<section>
<h2 id="additional-requirements">
Additional requirements
Expand Down

0 comments on commit a0d59c7

Please sign in to comment.