From 96ed05c5493fb2473eac131f595eaf3486703c0d Mon Sep 17 00:00:00 2001 From: Luke Warlow Date: Mon, 25 Mar 2024 12:16:48 +0000 Subject: [PATCH] Upstream changes from Trusted Types See https://w3c.github.io/trusted-types/dist/spec/#integration-with-exec-command Part of https://github.com/w3c/trusted-types/issues/476 --- docs/execCommand/index.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/execCommand/index.html b/docs/execCommand/index.html index 411a1b5..a422469 100644 --- a/docs/execCommand/index.html +++ b/docs/execCommand/index.html @@ -608,6 +608,17 @@

Methods to query and execute commands

+ +
+        partial interface Document {
+          [CEReactions] boolean execCommand(DOMString commandId, optional boolean showUI = false, optional (TrustedHTML or DOMString) value = "");
+        };
+      
+ +

+ TODO: Add IDL for queryCommand* functions. +

+

TODO: Define behavior for show UI.

@@ -12930,6 +12941,13 @@

Action:

    +
  1. +

    + Set value to the result of invoking + get trusted types compliant string with TrustedHTML, + this's relevant global object, value, "Document execCommand", and "script". +

    +
  2. @@ -15208,6 +15226,17 @@

    +
    +

    + Dependencies +

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

    Additional requirements