HTMLIFrameElement.webidl (2875B)
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-iframe-element 8 * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis 9 * https://wicg.github.io/feature-policy/#policy 10 * 11 * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and 12 * Opera Software ASA. You are granted a license to use, reproduce 13 * and create derivative works of this document. 14 */ 15 16 [Exposed=Window] 17 interface HTMLIFrameElement : HTMLElement { 18 [HTMLConstructor] constructor(); 19 20 [CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows, Pure] 21 attribute DOMString src; 22 [CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows, Pure] 23 attribute (TrustedHTML or DOMString) srcdoc; 24 [CEReactions, SetterThrows, Pure] 25 attribute DOMString name; 26 [PutForwards=value] readonly attribute DOMTokenList sandbox; 27 // attribute boolean seamless; 28 [CEReactions, SetterThrows, Pure] 29 attribute boolean allowFullscreen; 30 [CEReactions, SetterThrows, Pure] 31 attribute DOMString width; 32 [CEReactions, SetterThrows, Pure] 33 attribute DOMString height; 34 [CEReactions, SetterThrows, Pure] 35 attribute DOMString referrerPolicy; 36 [CEReactions, SetterThrows, Pure] 37 attribute DOMString loading; 38 [NeedsSubjectPrincipal] 39 readonly attribute Document? contentDocument; 40 readonly attribute WindowProxy? contentWindow; 41 }; 42 43 // http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis 44 partial interface HTMLIFrameElement { 45 [CEReactions, SetterThrows, Pure] 46 attribute DOMString align; 47 [CEReactions, SetterThrows, Pure] 48 attribute DOMString scrolling; 49 [CEReactions, SetterThrows, Pure] 50 attribute DOMString frameBorder; 51 [CEReactions, SetterThrows, Pure] 52 attribute DOMString longDesc; 53 54 [CEReactions, SetterThrows, Pure] 55 attribute [LegacyNullToEmptyString] DOMString marginHeight; 56 [CEReactions, SetterThrows, Pure] 57 attribute [LegacyNullToEmptyString] DOMString marginWidth; 58 }; 59 60 partial interface HTMLIFrameElement { 61 // GetSVGDocument 62 [NeedsSubjectPrincipal] 63 Document? getSVGDocument(); 64 }; 65 66 HTMLIFrameElement includes MozFrameLoaderOwner; 67 68 // https://w3c.github.io/webappsec-feature-policy/#idl-index 69 partial interface HTMLIFrameElement { 70 [SameObject, Pref="dom.security.featurePolicy.webidl.enabled"] 71 readonly attribute FeaturePolicy featurePolicy; 72 73 [CEReactions, SetterThrows, Pure] 74 attribute DOMString allow; 75 };