Skip to content

HTMLIFrameElement

Generated from idl/html.webidl when the site was built at 7aa23e2.

HTMLIFrameElement is an interface in idl/html.webidl, inheriting HTMLElement, exposed in Window. What it does is on MDN; this page says what niso has of it.

niso has no nested navigables, so an iframe has no content document or window.

The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).

Feature On the web In niso Members
<iframe> Widely available Partial 9.8% 8 of 81 subtests pass 7
srcdoc Widely available Not yet 0 of 29 subtests pass 1
Permissions policy Limited availability Not run its tests are not-in-suite 1
constructor
[HTMLConstructor] constructor();
attribute
attribute USVString src;
int32_t niso_htmli_frame_element_get_src(niso_dom* dom, niso_handle self, niso_str* out);
int32_t niso_htmli_frame_element_set_src(niso_dom* dom, niso_handle self, const char* value, size_t value_len);
attribute srcdoc: Not yet
attribute DOMString srcdoc;
int32_t niso_htmli_frame_element_get_srcdoc(niso_dom* dom, niso_handle self, niso_str* out);
int32_t niso_htmli_frame_element_set_srcdoc(niso_dom* dom, niso_handle self, const char* value, size_t value_len);
attribute
attribute DOMString name;
int32_t niso_htmli_frame_element_get_name(niso_dom* dom, niso_handle self, niso_str* out);
int32_t niso_htmli_frame_element_set_name(niso_dom* dom, niso_handle self, const char* value, size_t value_len);
attribute Permissions policy: Not run
attribute DOMString allow;
int32_t niso_htmli_frame_element_get_allow(niso_dom* dom, niso_handle self, niso_str* out);
int32_t niso_htmli_frame_element_set_allow(niso_dom* dom, niso_handle self, const char* value, size_t value_len);
attribute
attribute DOMString width;
int32_t niso_htmli_frame_element_get_width(niso_dom* dom, niso_handle self, niso_str* out);
int32_t niso_htmli_frame_element_set_width(niso_dom* dom, niso_handle self, const char* value, size_t value_len);
attribute
attribute DOMString height;
int32_t niso_htmli_frame_element_get_height(niso_dom* dom, niso_handle self, niso_str* out);
int32_t niso_htmli_frame_element_set_height(niso_dom* dom, niso_handle self, const char* value, size_t value_len);
attribute
readonly attribute Document? contentDocument;
int32_t niso_htmli_frame_element_get_content_document(niso_dom* dom, niso_handle self, niso_handle* out);
attribute
readonly attribute WindowProxy? contentWindow;
int32_t niso_htmli_frame_element_get_content_window(niso_dom* dom, niso_handle self, niso_handle* out);

Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.

  • adAuctionHeaders (Protected audience)
  • allowFullscreen (Fullscreen API)
  • browsingTopics (Topics)
  • credentialless (Credentialless iframes)
  • csp (Content Security Policy (CSP))
  • featurePolicy (Feature policy)
  • getSVGDocument (<iframe>)
  • loading (Lazy-loading images and iframes)
  • referrerPolicy (Referrer policy)
  • sandbox (Sandboxed iframes)
  • sharedStorageWritable (Shared storage)