2024-05-31 21:06:08 +01:00
|
|
|
#import <Fetch/Request.idl>
|
2022-02-15 22:40:51 +03:30
|
|
|
#import <HTML/HTMLElement.idl>
|
2023-11-05 01:48:01 +01:00
|
|
|
#import <HTML/Scripting/Fetching.idl>
|
2022-02-15 22:40:51 +03:30
|
|
|
|
2022-10-07 16:45:09 -06:00
|
|
|
// https://html.spec.whatwg.org/multipage/scripting.html#htmlscriptelement
|
2023-09-03 15:26:16 +12:00
|
|
|
[Exposed=Window]
|
2020-07-27 05:04:26 +01:00
|
|
|
interface HTMLScriptElement : HTMLElement {
|
2023-03-23 03:48:52 -04:00
|
|
|
[HTMLConstructor] constructor();
|
|
|
|
|
2023-03-01 01:45:18 +00:00
|
|
|
[CEReactions, Reflect] attribute DOMString type;
|
|
|
|
[CEReactions, Reflect=nomodule] attribute boolean noModule;
|
2024-04-14 18:54:28 +02:00
|
|
|
[CEReactions] attribute boolean async;
|
2023-03-01 01:45:18 +00:00
|
|
|
[CEReactions, Reflect] attribute boolean defer;
|
2025-07-08 14:04:49 +01:00
|
|
|
[FIXME, SameObject, PutForwards=value] readonly attribute DOMTokenList blocking;
|
2023-11-05 01:48:01 +01:00
|
|
|
[CEReactions, Reflect=crossorigin, Enumerated=CORSSettingsAttribute] attribute DOMString? crossOrigin;
|
2024-05-31 21:06:08 +01:00
|
|
|
[CEReactions, Reflect=referrerpolicy, Enumerated=ReferrerPolicy] attribute DOMString referrerPolicy;
|
2025-07-08 14:04:49 +01:00
|
|
|
[CEReactions, Reflect] attribute DOMString integrity;
|
2024-05-30 21:10:12 +01:00
|
|
|
[CEReactions, Enumerated=FetchPriorityAttribute, Reflect=fetchpriority] attribute DOMString fetchPriority;
|
2025-07-28 09:46:06 -04:00
|
|
|
|
2025-08-05 21:58:13 +02:00
|
|
|
// https://www.w3.org/TR/trusted-types/#enforcement-in-scripts
|
|
|
|
[CEReactions] attribute (TrustedScript or Utf16DOMString) text;
|
2025-08-06 02:28:52 +02:00
|
|
|
[CEReactions] attribute (TrustedScriptURL or Utf16USVString) src;
|
2025-08-06 14:13:09 +02:00
|
|
|
[CEReactions] attribute (TrustedScript or Utf16DOMString)? textContent;
|
2025-08-06 15:03:58 +02:00
|
|
|
[CEReactions] attribute (TrustedScript or Utf16DOMString) innerText;
|
2020-07-27 05:04:26 +01:00
|
|
|
|
2021-09-03 21:01:10 +01:00
|
|
|
static boolean supports(DOMString type);
|
|
|
|
|
2023-10-25 17:26:24 +02:00
|
|
|
// Obsolete
|
2023-03-01 01:45:18 +00:00
|
|
|
[CEReactions, Reflect] attribute DOMString charset;
|
|
|
|
[CEReactions, Reflect] attribute DOMString event;
|
|
|
|
[CEReactions, Reflect=for] attribute DOMString htmlFor;
|
2020-12-09 21:26:42 +00:00
|
|
|
};
|