From 5592e304d4f4f33be1dae563e62c899213d34584 Mon Sep 17 00:00:00 2001 From: Luke Warlow Date: Tue, 23 Apr 2024 17:28:15 +0100 Subject: [PATCH] Update IDL for script enforcement (#484) * Update IDL for script enforcement - Node/textContent, and Element/innerText are both now shadowed on HTMLScriptElement. - Swap to using union types for all the Script properties. --- spec/index.bs | 82 ++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 65 insertions(+), 17 deletions(-) diff --git a/spec/index.bs b/spec/index.bs index 8049000..dda269e 100644 --- a/spec/index.bs +++ b/spec/index.bs @@ -120,6 +120,12 @@ spec:ECMA-262; urlPrefix: https://tc39.github.io/ecma262/ type:dfn; text:current realm record; url: current-realm spec: HTML; urlPrefix: https://html.spec.whatwg.org/ type: dfn; text: prepare the script element; url: prepare-the-script-element + type: dfn; text: get the text steps; url: get-the-text-steps + type: dfn; text: set the inner text steps; url: set-the-inner-text-steps + type: dfn; text: src; url: attr-script-src +spec:DOM; urlPrefix: https://dom.spec.whatwg.org/ + type: dfn; text: get text content; url: get-text-content + type: dfn; text: set text content; url: set-text-content