diff --git a/source b/source index 3ed0c5218ff..beb2f358027 100644 --- a/source +++ b/source @@ -4610,6 +4610,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • ScriptURLString
  • TrustedHTML
  • data
  • +
  • TrustedScript
  • Get Trusted Type compliant string
  • @@ -111834,7 +111835,7 @@ interface mixin WindowEventHandlers { interface mixin WindowOrWorkerGlobalScope { … }; along with an appropriate reference.

    -
    typedef (DOMString or Function) TimerHandler;
    +  
    typedef (DOMString or Function or TrustedScript) TimerHandler;
     
     interface mixin WindowOrWorkerGlobalScope {
       [Replaceable] readonly attribute USVString origin;
    @@ -113224,9 +113225,10 @@ enum DOMParserSupportedType {
     
       

    The timer initialization steps, given a WindowOrWorkerGlobalScope global, a string or Function handler, a number timeout, a list - arguments, a boolean repeat, and optionally (and only if repeat - is true) a number previousId, are:

    + data-x="idl-Function">Function
    or TrustedScript + handler, a number timeout, a list arguments, a boolean + repeat, and optionally (and only if repeat is true) a number + previousId, are:

    1. Let thisArg be global if that is a WorkerGlobalScope @@ -113282,6 +113284,28 @@ enum DOMParserSupportedType {

      Otherwise:

        +
      1. +

        If previousId was not given:

        + +
          +
        1. Let globalName be "Window" if this's + relevant global object is a Window object; "Worker" otherwise.

        2. + +
        3. Let methodName be "setInterval" if + repeat is true; "setTimeout" otherwise.

        4. + +
        5. Let sink be a concatenation of globalName, U+0020 SPACE, and + methodName.

        6. + +
        7. Set handler to the result of invoking the Get Trusted Type compliant string algorithm with + TrustedScript, this's relevant + global object, handler, sink, and "script".

        8. +
        +
      2. +
      3. Assert: handler is a string.

      4. Perform