Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream changes from Trusted Types #460

Merged
merged 1 commit into from
May 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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