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
TrustedScript
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:
Let thisArg be global if that is a WorkerGlobalScope
@@ -113282,6 +113284,28 @@ enum DOMParserSupportedType {
Otherwise:
+ -
+
If previousId was not given:
+
+
+ Let globalName be "Window
" if this's
+ relevant global object is a Window
object; "Worker
" otherwise.
+
+ Let methodName be "setInterval
" if
+ repeat is true; "setTimeout
" otherwise.
+
+ Let sink be a concatenation of globalName, U+0020 SPACE, and
+ methodName.
+
+ 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
".
+
+
+
Assert: handler is a string.
Perform