HTMLScriptElement.idl 1.3 KB

123456789101112131415161718192021222324252627282930
  1. #import <Fetch/Request.idl>
  2. #import <HTML/HTMLElement.idl>
  3. #import <HTML/Scripting/Fetching.idl>
  4. // https://html.spec.whatwg.org/multipage/scripting.html#htmlscriptelement
  5. [Exposed=Window]
  6. interface HTMLScriptElement : HTMLElement {
  7. [HTMLConstructor] constructor();
  8. [CEReactions, Reflect, URL] attribute USVString src;
  9. [CEReactions, Reflect] attribute DOMString type;
  10. [CEReactions, Reflect=nomodule] attribute boolean noModule;
  11. [CEReactions] attribute boolean async;
  12. [CEReactions, Reflect] attribute boolean defer;
  13. [CEReactions, Reflect=crossorigin, Enumerated=CORSSettingsAttribute] attribute DOMString? crossOrigin;
  14. [CEReactions] attribute DOMString text;
  15. [CEReactions, Reflect] attribute DOMString integrity;
  16. [CEReactions, Reflect=referrerpolicy, Enumerated=ReferrerPolicy] attribute DOMString referrerPolicy;
  17. [FIXME, SameObject, PutForwards=value] readonly attribute DOMTokenList blocking;
  18. [CEReactions, Enumerated=FetchPriorityAttribute, Reflect=fetchpriority] attribute DOMString fetchPriority;
  19. static boolean supports(DOMString type);
  20. // Obsolete
  21. [CEReactions, Reflect] attribute DOMString charset;
  22. [CEReactions, Reflect] attribute DOMString event;
  23. [CEReactions, Reflect=for] attribute DOMString htmlFor;
  24. };