2013-01-05 13:41:28 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://www.whatwg.org/specs/web-apps/current-work/#the-script-element
|
|
|
|
* http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
|
|
|
|
*/
|
|
|
|
|
2016-11-17 12:34:42 +03:00
|
|
|
[HTMLConstructor]
|
2013-01-05 13:41:28 +04:00
|
|
|
interface HTMLScriptElement : HTMLElement {
|
2017-12-21 01:43:18 +03:00
|
|
|
[CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows]
|
2013-01-05 13:41:28 +04:00
|
|
|
attribute DOMString src;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows]
|
2013-01-05 13:41:28 +04:00
|
|
|
attribute DOMString type;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows, Pref="dom.moduleScripts.enabled"]
|
2017-05-04 11:24:13 +03:00
|
|
|
attribute boolean noModule;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows]
|
2013-01-05 13:41:28 +04:00
|
|
|
attribute DOMString charset;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows]
|
2013-01-05 13:41:28 +04:00
|
|
|
attribute boolean async;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows]
|
2013-01-05 13:41:28 +04:00
|
|
|
attribute boolean defer;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows]
|
2014-09-06 06:42:33 +04:00
|
|
|
attribute DOMString? crossOrigin;
|
2017-11-09 06:02:14 +03:00
|
|
|
[CEReactions, Throws]
|
2013-01-05 13:41:28 +04:00
|
|
|
attribute DOMString text;
|
|
|
|
};
|
|
|
|
|
|
|
|
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
|
|
|
|
partial interface HTMLScriptElement {
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows]
|
2013-01-05 13:41:28 +04:00
|
|
|
attribute DOMString event;
|
2017-06-29 17:26:00 +03:00
|
|
|
[CEReactions, SetterThrows]
|
2013-01-05 13:41:28 +04:00
|
|
|
attribute DOMString htmlFor;
|
|
|
|
};
|
2017-08-28 22:20:55 +03:00
|
|
|
|
|
|
|
// https://w3c.github.io/webappsec/specs/subresourceintegrity/#htmlscriptelement-1
|
|
|
|
partial interface HTMLScriptElement {
|
|
|
|
[CEReactions, SetterThrows]
|
|
|
|
attribute DOMString integrity;
|
|
|
|
};
|