From 5c365884dd2b279d02c3adb531ca86d0510f6f10 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Tue, 8 Jul 2025 14:04:49 +0100 Subject: [PATCH] LibWeb/HTML: Update HTMLScriptElement.idl to match current spec Corresponds to https://github.com/whatwg/html/commit/e21d9ff0d6615d2c85060a7a00a2a2fe2c0db846 As far as I can tell, none of the rest of this change requires modifications on our end. --- Libraries/LibWeb/HTML/HTMLScriptElement.idl | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Libraries/LibWeb/HTML/HTMLScriptElement.idl b/Libraries/LibWeb/HTML/HTMLScriptElement.idl index 58d15b4480a..47933ac566f 100644 --- a/Libraries/LibWeb/HTML/HTMLScriptElement.idl +++ b/Libraries/LibWeb/HTML/HTMLScriptElement.idl @@ -5,20 +5,20 @@ // https://html.spec.whatwg.org/multipage/scripting.html#htmlscriptelement [Exposed=Window] interface HTMLScriptElement : HTMLElement { - [HTMLConstructor] constructor(); - [CEReactions, Reflect, URL] attribute USVString src; [CEReactions, Reflect] attribute DOMString type; + [CEReactions, Reflect, URL] attribute USVString src; [CEReactions, Reflect=nomodule] attribute boolean noModule; [CEReactions] attribute boolean async; [CEReactions, Reflect] attribute boolean defer; - [CEReactions, Reflect=crossorigin, Enumerated=CORSSettingsAttribute] attribute DOMString? crossOrigin; - [CEReactions] attribute DOMString text; - [CEReactions, Reflect] attribute DOMString integrity; - [CEReactions, Reflect=referrerpolicy, Enumerated=ReferrerPolicy] attribute DOMString referrerPolicy; [FIXME, SameObject, PutForwards=value] readonly attribute DOMTokenList blocking; + [CEReactions, Reflect=crossorigin, Enumerated=CORSSettingsAttribute] attribute DOMString? crossOrigin; + [CEReactions, Reflect=referrerpolicy, Enumerated=ReferrerPolicy] attribute DOMString referrerPolicy; + [CEReactions, Reflect] attribute DOMString integrity; [CEReactions, Enumerated=FetchPriorityAttribute, Reflect=fetchpriority] attribute DOMString fetchPriority; + + [CEReactions] attribute DOMString text; static boolean supports(DOMString type); @@ -26,5 +26,4 @@ interface HTMLScriptElement : HTMLElement { [CEReactions, Reflect] attribute DOMString charset; [CEReactions, Reflect] attribute DOMString event; [CEReactions, Reflect=for] attribute DOMString htmlFor; - };