Definition
HTML Standard defines HTMLIFrameElement
[Exposed=Window]
interface HTMLIFrameElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute USVString src;
[CEReactions] attribute (TrustedHTML or DOMString) srcdoc;
[CEReactions] attribute DOMString name;
[SameObject, PutForwards=value] readonly attribute DOMTokenList sandbox;
[CEReactions] attribute DOMString allow;
[CEReactions] attribute boolean allowFullscreen;
[CEReactions] attribute DOMString width;
[CEReactions] attribute DOMString height;
[CEReactions] attribute DOMString referrerPolicy;
[CEReactions] attribute DOMString loading;
readonly attribute Document? contentDocument;
readonly attribute WindowProxy? contentWindow;
Document? getSVGDocument();
// also has obsolete members
};
partial interface HTMLIFrameElement {
[CEReactions] attribute DOMString align;
[CEReactions] attribute DOMString scrolling;
[CEReactions] attribute DOMString frameBorder;
[CEReactions] attribute USVString longDesc;
[CEReactions] attribute [LegacyNullToEmptyString] DOMString marginHeight;
[CEReactions] attribute [LegacyNullToEmptyString] DOMString marginWidth;
};
This interface is extended in the following specifications:
- Iframe credentialless
partial interface HTMLIFrameElement { attribute boolean credentialless; };
- Shared Storage API
HTMLIFrameElement includes HTMLSharedStorageWritableElementUtils;
- Private State Token API
partial interface HTMLIFrameElement { [SecureContext] attribute DOMString privateToken; };
- Protected Audience (formerly FLEDGE)
partial interface HTMLIFrameElement { [CEReactions] attribute boolean adAuctionHeaders; };
- Content Security Policy: Embedded Enforcement
partial interface HTMLIFrameElement { [CEReactions] attribute DOMString csp; };
- Permissions Policy
partial interface HTMLIFrameElement { [SameObject] readonly attribute PermissionsPolicy permissionsPolicy; };
Consolidated IDL (across mixin and partials)
[Exposed=Window]
interface HTMLIFrameElement : HTMLElement {
[HTMLConstructor] constructor();
[CEReactions] attribute USVString src;
[CEReactions] attribute (TrustedHTML or DOMString) srcdoc;
[CEReactions] attribute DOMString name;
[SameObject, PutForwards=value] readonly attribute DOMTokenList sandbox;
[CEReactions] attribute DOMString allow;
[CEReactions] attribute boolean allowFullscreen;
[CEReactions] attribute DOMString width;
[CEReactions] attribute DOMString height;
[CEReactions] attribute DOMString referrerPolicy;
[CEReactions] attribute DOMString loading;
readonly attribute Document? contentDocument;
readonly attribute WindowProxy? contentWindow;
Document? getSVGDocument();
[CEReactions] attribute DOMString align;
[CEReactions] attribute DOMString scrolling;
[CEReactions] attribute DOMString frameBorder;
[CEReactions] attribute USVString longDesc;
[CEReactions] attribute [LegacyNullToEmptyString] DOMString marginHeight;
[CEReactions] attribute [LegacyNullToEmptyString] DOMString marginWidth;
attribute boolean credentialless;
[SecureContext] attribute DOMString privateToken;
[CEReactions] attribute boolean adAuctionHeaders;
[CEReactions] attribute DOMString csp;
[SameObject] readonly attribute PermissionsPolicy permissionsPolicy;
// also has obsolete members
};
Methods and attributes that return objects implementing HTMLIFrameElement
Referring specifications
- Iframe credentialless refers to
HTMLIFrameElement
- Private State Token API refers to
HTMLIFrameElement
- Protected Audience (formerly FLEDGE) refers to
HTMLIFrameElement
- Content Security Policy: Embedded Enforcement refers to
HTMLIFrameElement
- Permissions Policy refers to
HTMLIFrameElement