tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

HTMLScriptElement.webidl (2372B)


      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 [Exposed=Window]
     12 interface HTMLScriptElement : HTMLElement {
     13  [HTMLConstructor] constructor();
     14 
     15  [CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows]
     16  attribute (TrustedScriptURL or USVString) src;
     17  [CEReactions, SetterThrows]
     18  attribute DOMString type;
     19  [CEReactions, SetterThrows]
     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, SetterNeedsSubjectPrincipal=NonSystem, Throws]
     32  attribute (TrustedScript or DOMString) text;
     33  [Pref="dom.element.blocking.enabled", SameObject, PutForwards=value]
     34  readonly attribute DOMTokenList blocking;
     35  [Pref="network.fetchpriority.enabled", CEReactions]
     36  attribute DOMString fetchPriority;
     37 
     38  static boolean supports(DOMString type);
     39 };
     40 
     41 // http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
     42 partial interface HTMLScriptElement {
     43  [CEReactions, SetterThrows]
     44  attribute DOMString event;
     45  [CEReactions, SetterThrows]
     46  attribute DOMString htmlFor;
     47 };
     48 
     49 // https://w3c.github.io/webappsec/specs/subresourceintegrity/#htmlscriptelement-1
     50 partial interface HTMLScriptElement {
     51  [CEReactions, SetterThrows]
     52  attribute DOMString integrity;
     53 };
     54 
     55 // https://w3c.github.io/trusted-types/dist/spec/#enforcement-in-scripts
     56 partial interface HTMLScriptElement {
     57  [CEReactions, SetterNeedsSubjectPrincipal=NonSystem, Throws] attribute (TrustedScript or [LegacyNullToEmptyString] DOMString) innerText;
     58  [CEReactions, SetterThrows, GetterCanOOM,
     59   SetterNeedsSubjectPrincipal=NonSystem, BinaryName="trustedScriptOrStringTextContent"] attribute (TrustedScript or DOMString)? textContent;
     60 };