LibWeb/HTML: Update HTMLScriptElement.idl to match current spec

Corresponds to e21d9ff0d6

As far as I can tell, none of the rest of this change requires
modifications on our end.
This commit is contained in:
Sam Atkins 2025-07-08 14:04:49 +01:00 committed by Tim Ledbetter
parent 0cfa243baa
commit 5c365884dd
Notes: github-actions[bot] 2025-07-08 16:10:08 +00:00

View file

@ -5,20 +5,20 @@
// https://html.spec.whatwg.org/multipage/scripting.html#htmlscriptelement // https://html.spec.whatwg.org/multipage/scripting.html#htmlscriptelement
[Exposed=Window] [Exposed=Window]
interface HTMLScriptElement : HTMLElement { interface HTMLScriptElement : HTMLElement {
[HTMLConstructor] constructor(); [HTMLConstructor] constructor();
[CEReactions, Reflect, URL] attribute USVString src;
[CEReactions, Reflect] attribute DOMString type; [CEReactions, Reflect] attribute DOMString type;
[CEReactions, Reflect, URL] attribute USVString src;
[CEReactions, Reflect=nomodule] attribute boolean noModule; [CEReactions, Reflect=nomodule] attribute boolean noModule;
[CEReactions] attribute boolean async; [CEReactions] attribute boolean async;
[CEReactions, Reflect] attribute boolean defer; [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; [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, Enumerated=FetchPriorityAttribute, Reflect=fetchpriority] attribute DOMString fetchPriority;
[CEReactions] attribute DOMString text;
static boolean supports(DOMString type); static boolean supports(DOMString type);
@ -26,5 +26,4 @@ interface HTMLScriptElement : HTMLElement {
[CEReactions, Reflect] attribute DOMString charset; [CEReactions, Reflect] attribute DOMString charset;
[CEReactions, Reflect] attribute DOMString event; [CEReactions, Reflect] attribute DOMString event;
[CEReactions, Reflect=for] attribute DOMString htmlFor; [CEReactions, Reflect=for] attribute DOMString htmlFor;
}; };