Mypal/dom/webidl/HTMLScriptElement.webidl

44 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

2019-03-11 10:26:37 +00: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-03-12 17:41:43 +00:00
[HTMLConstructor]
2019-03-11 10:26:37 +00:00
interface HTMLScriptElement : HTMLElement {
2020-03-12 17:41:43 +00:00
[CEReactions, SetterThrows]
2019-03-11 10:26:37 +00:00
attribute DOMString src;
2020-03-12 17:41:43 +00:00
[CEReactions, SetterThrows]
2019-03-11 10:26:37 +00:00
attribute DOMString type;
2020-03-12 17:41:43 +00:00
[CEReactions, SetterThrows, Pref="dom.moduleScripts.enabled"]
2019-12-25 12:40:30 +00:00
attribute boolean noModule;
2020-03-12 17:41:43 +00:00
[CEReactions, SetterThrows]
2019-03-11 10:26:37 +00:00
attribute DOMString charset;
2020-03-12 17:41:43 +00:00
[CEReactions, SetterThrows]
2019-03-11 10:26:37 +00:00
attribute boolean async;
2020-03-12 17:41:43 +00:00
[CEReactions, SetterThrows]
2019-03-11 10:26:37 +00:00
attribute boolean defer;
2020-03-12 17:41:43 +00:00
[CEReactions, SetterThrows]
2019-03-11 10:26:37 +00:00
attribute DOMString? crossOrigin;
2020-03-12 17:41:43 +00:00
[CEReactions, SetterThrows]
2019-03-11 10:26:37 +00:00
attribute DOMString text;
};
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
partial interface HTMLScriptElement {
2020-03-12 17:41:43 +00:00
[CEReactions, SetterThrows]
2019-03-11 10:26:37 +00:00
attribute DOMString event;
2020-03-12 17:41:43 +00:00
[CEReactions, SetterThrows]
2019-03-11 10:26:37 +00:00
attribute DOMString htmlFor;
};
// https://w3c.github.io/webappsec/specs/subresourceintegrity/#htmlscriptelement-1
partial interface HTMLScriptElement {
2020-03-12 17:41:43 +00:00
[CEReactions, SetterThrows]
2019-03-11 10:26:37 +00:00
attribute DOMString integrity;
};