2018-01-19 03:59:58 +08: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
|
|
|
|
|
*/
|
|
|
|
|
|
2020-01-02 21:46:47 -05:00
|
|
|
[HTMLConstructor]
|
2018-01-19 03:59:58 +08:00
|
|
|
interface HTMLScriptElement : HTMLElement {
|
2020-01-04 21:41:41 -05:00
|
|
|
[CEReactions, SetterThrows]
|
2018-01-19 03:59:58 +08:00
|
|
|
attribute DOMString src;
|
2020-01-04 21:41:41 -05:00
|
|
|
[CEReactions, SetterThrows]
|
2018-01-19 03:59:58 +08:00
|
|
|
attribute DOMString type;
|
2020-01-04 21:41:41 -05:00
|
|
|
[CEReactions, SetterThrows, Pref="dom.moduleScripts.enabled"]
|
2018-07-10 13:28:03 +02:00
|
|
|
attribute boolean noModule;
|
2020-01-04 21:41:41 -05:00
|
|
|
[CEReactions, SetterThrows]
|
2018-01-19 03:59:58 +08:00
|
|
|
attribute DOMString charset;
|
2020-01-04 21:41:41 -05:00
|
|
|
[CEReactions, SetterThrows]
|
2018-01-19 03:59:58 +08:00
|
|
|
attribute boolean async;
|
2020-01-04 21:41:41 -05:00
|
|
|
[CEReactions, SetterThrows]
|
2018-01-19 03:59:58 +08:00
|
|
|
attribute boolean defer;
|
2020-01-04 21:41:41 -05:00
|
|
|
[CEReactions, SetterThrows]
|
2018-01-19 03:59:58 +08:00
|
|
|
attribute DOMString? crossOrigin;
|
2020-01-04 21:41:41 -05:00
|
|
|
[CEReactions, SetterThrows]
|
2024-10-20 09:35:39 +02:00
|
|
|
attribute DOMString referrerPolicy;
|
|
|
|
|
[CEReactions, SetterThrows]
|
2018-01-19 03:59:58 +08:00
|
|
|
attribute DOMString text;
|
2021-04-19 20:47:29 +00:00
|
|
|
[CEReactions, SetterThrows, Pure]
|
|
|
|
|
attribute DOMString nonce;
|
|
|
|
|
[CEReactions, SetterThrows, Pure]
|
|
|
|
|
attribute DOMString integrity;
|
2018-01-19 03:59:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
|
|
|
|
|
partial interface HTMLScriptElement {
|
2020-01-04 21:41:41 -05:00
|
|
|
[CEReactions, SetterThrows]
|
2018-01-19 03:59:58 +08:00
|
|
|
attribute DOMString event;
|
2020-01-04 21:41:41 -05:00
|
|
|
[CEReactions, SetterThrows]
|
2018-01-19 03:59:58 +08:00
|
|
|
attribute DOMString htmlFor;
|
|
|
|
|
};
|