Bug 1634779 - pt 2. Partially revert Bug 1603006 r=kmag
[gecko.git] / dom / webidl / HTMLScriptElement.webidl
bloba31e07b7b6836de24b3cf78c76548d1c64360c43
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/.
5  *
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
9  */
11 [Exposed=Window]
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, Pref="dom.moduleScripts.enabled"]
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;
31   [CEReactions, Throws]
32   attribute DOMString text;
35 // http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
36 partial interface HTMLScriptElement {
37   [CEReactions, SetterThrows]
38   attribute DOMString event;
39   [CEReactions, SetterThrows]
40   attribute DOMString htmlFor;
43 // https://w3c.github.io/webappsec/specs/subresourceintegrity/#htmlscriptelement-1
44 partial interface HTMLScriptElement {
45   [CEReactions, SetterThrows]
46   attribute DOMString integrity;