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 */ 10 11[HTMLConstructor] 12interface HTMLScriptElement : HTMLElement { 13 [CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows] 14 attribute DOMString src; 15 [CEReactions, SetterThrows] 16 attribute DOMString type; 17 [CEReactions, SetterThrows, Pref="dom.moduleScripts.enabled"] 18 attribute boolean noModule; 19 [CEReactions, SetterThrows] 20 attribute DOMString charset; 21 [CEReactions, SetterThrows] 22 attribute boolean async; 23 [CEReactions, SetterThrows] 24 attribute boolean defer; 25 [CEReactions, SetterThrows] 26 attribute DOMString? crossOrigin; 27 [CEReactions, Throws] 28 attribute DOMString text; 29}; 30 31// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis 32partial interface HTMLScriptElement { 33 [CEReactions, SetterThrows] 34 attribute DOMString event; 35 [CEReactions, SetterThrows] 36 attribute DOMString htmlFor; 37}; 38 39// https://w3c.github.io/webappsec/specs/subresourceintegrity/#htmlscriptelement-1 40partial interface HTMLScriptElement { 41 [CEReactions, SetterThrows] 42 attribute DOMString integrity; 43}; 44