From 4a04e8f59cafb3111702fb8c592b97c1500f0b46 Mon Sep 17 00:00:00 2001 From: Luke Warlow Date: Tue, 2 Apr 2024 13:50:53 +0100 Subject: [PATCH 1/4] Update IDL for script enforcement - Node/textContent, and Element/innerText are both now shadowed on HTMLScriptElement. HTMLScriptElement/textContent uses a union type rather than [StringContext] because it uses a nullable type. --- spec/index.bs | 63 ++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 47 insertions(+), 16 deletions(-) diff --git a/spec/index.bs b/spec/index.bs index 112c8e9..e7198fb 100644 --- a/spec/index.bs +++ b/spec/index.bs @@ -120,6 +120,11 @@ 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 +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