1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
6 * The origin of this IDL file is
7 * http://www.whatwg.org/specs/web-apps/current-work/#the-script-element
8 * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
12 interface HTMLScriptElement : HTMLElement {
13 [HTMLConstructor] constructor();
15 [CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows]
16 attribute DOMString src;
17 [CEReactions, SetterThrows]
18 attribute DOMString type;
19 [CEReactions, SetterThrows]
20 attribute boolean noModule;
21 [CEReactions, SetterThrows]
22 attribute DOMString charset;
23 [CEReactions, SetterThrows]
24 attribute boolean async;
25 [CEReactions, SetterThrows]
26 attribute boolean defer;
27 [CEReactions, SetterThrows]
28 attribute DOMString? crossOrigin;
29 [CEReactions, SetterThrows]
30 attribute DOMString referrerPolicy;
32 attribute DOMString text;
33 [Pref="dom.element.blocking.enabled", SameObject, PutForwards=value]
34 readonly attribute DOMTokenList blocking;
35 [Pref="network.fetchpriority.enabled", CEReactions]
36 attribute DOMString fetchPriority;
38 static boolean supports(DOMString type);
41 // http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
42 partial interface HTMLScriptElement {
43 [CEReactions, SetterThrows]
44 attribute DOMString event;
45 [CEReactions, SetterThrows]
46 attribute DOMString htmlFor;
49 // https://w3c.github.io/webappsec/specs/subresourceintegrity/#htmlscriptelement-1
50 partial interface HTMLScriptElement {
51 [CEReactions, SetterThrows]
52 attribute DOMString integrity;