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