iframe

  • Enlace amigable (slug) de la revisión: HTML/Element/iframe
  • Título de la revisión: iframe
  • Id de la revisión: 307825
  • Creada:
  • Creador: aguztinrs
  • ¿Es la revisión actual? No
  • Comentario

Contenido de la revisión

Resumen

El elemento HTML inline frame (<iframe>) representa un contexto de navegación anidada, efectivamente incorporar otra página HTML en la página actual. Cada contexto de navegación tiene su propia historia  sesión y en el documento activo. El contexto de navegación que incluye el contenido implícito se llama el contexto de navegación principal. El contexto de navegación de nivel superior (que no tiene padre) es típicamente la ventana del navegador.

Uso contexto

contenido Permitido Datos de caracter normal (referencias de texto y caracteres)
Omisión de Etiqueta Ninguna, deben tener una etiqueta de inicio y una etiqueta final.
Elementos padres permitidos Cualquier elemento que acepte contenido fraseo.
Normativa documento HTML 5, section 4.8.2; HTML 4.01, section 16.5

Atributos

Al igual que todos los elementos HTML, este elemento admite los atributos globales.

{{ htmlattrdef("align") }} {{ deprecated_inline() }} in {{ HTMLVersionInline(4.01) }}, {{ obsolete_inline() }} in {{ HTMLVersionInline(5) }}
La alineación de este elemento con respecto al contexto que lo rodea.
{{ htmlattrdef("frameborder") }} {{ HTMLVersionInline(4) }} only
El valor 1 (por defecto) indica al navegador establecer una frontera entre este marco y todo otro marco. El valor 0 indica que el navegador no establece una frontera entre este marco y otros marcos.
{{ htmlattrdef("height") }}
Indica la altura del frame {{ HTMLVersionInline(5) }}en píxeles CSS, o {{ HTMLVersionInline(4.01) }} en píxeles o como un porcentaje.
{{ htmlattrdef("longdesc") }} {{ HTMLVersionInline(4) }} only
Una URI de una descripción larga del marco. Debido al mal uso generalizado, esto no es útil para navegadores no visuales.
{{ htmlattrdef("marginheight") }} {{ HTMLVersionInline(4) }} only
The amount of space in pixels between the frame's content and its top and bottom margins.
{{ htmlattrdef("marginwidth") }} {{ HTMLVersionInline(4) }} only
The amount of space in pixels between the frame's content and its left and right margins.
{{ htmlattrdef("mozallowfullscreen") }} {{ non-standard_inline() }}
In Gecko 9.0 or later, this attribute can be set to true if the frame is allowed to be placed into full screen mode by calling its {{ domxref("element.mozRequestFullScreen()") }} method. If this isn't set, the element can't be placed into full screen mode.
{{ htmlattrdef("webkitallowfullscreen") }} {{ non-standard_inline() }}
In Chrome 17 or later (and maybe earlier), this attribute can be set to true if the frame is allowed to be placed into full screen mode by calling its {{ domxref("element.webkitRequestFullScreen()") }} method. If this isn't set, the element can't be placed into full screen mode.
 
{{ htmlattrdef("mozapp") }} {{ non-standard_inline() }} {{ B2GOnlyInline() }}
For frames hosting an open web app, this specifies the URL of the app manifest. This ensures that the app is loaded with the right permissions. See Using the Browser API for details. Available in Gecko 13.0 and later.
{{ htmlattrdef("mozbrowser") }} {{ non-standard_inline() }} {{ B2GOnlyInline() }}
Indicates that the frame is to appear like a top-level browser window to the embedded content. This means that window.top, window.parent, window.frameElement, etc. will not reflect the frame hierarchy. This allows for a web browser UI to be implemented entirely with web technology, given the right permissions. See Using the Browser API for details. Available in Gecko 13.0 and later.
{{ htmlattrdef("name") }}
A name for the embedded browsing context (or frame). This can be used as the value of the target attribute of an {{ HTMLElement("a") }} or {{ HTMLElement("form") }} element, or the formtarget attribute of an {{ HTMLElement("input") }} or {{ HTMLElement("button") }} element.
{{ htmlattrdef("remote") }} {{ non-standard_inline() }} {{ B2GOnlyInline() }}
Load the frame's page in a separate content process.
{{ htmlattrdef("scrolling") }} {{ HTMLVersionInline(4) }} only
Enumerated attribute indicating when the browser should provide a scroll bar (or other scrolling device) for the frame:
  • auto: Only when needed.
  • yes: Always provide a scroll bar.
  • no: Never provide a scoll bar.
{{ htmlattrdef("sandbox") }} {{ HTMLVersionInline(5) }} only
If specified as an empty string, this attribute enables extra restrictions on the content that can appear in the inline frame. The value of the attribute can be a space-separated list of tokens that lift particular restrictions. Valid tokens are:
  • allow-same-origin: Allows the content to be treated as being from its normal origin. If this keyword is not used, the embedded content is treated as being from a unique origin.
  • allow-top-navigation: Allows the embedded browsing context to navigate (load) content to the top-level browsing context. If this keyword is not used, this operation is not allowed.
  • allow-forms: Allows the embedded browsing context to submit forms. If this keyword is not used, this operation is not allowed.
  • allow-scripts: Allows the embedded browsing context to run scripts (but not create pop-up windows). If this keyword is not used, this operation is not allowed.

Note:

  • When the embedded document has the same origin as the main page, it is strongly discouraged to use both allow-scripts and allow-same-origin at the same time, as that allows the embedded document to programmatically remove the sandbox attribute. Although it is accepted, this case is no more secure than not using the sandbox attribute.
  • Sandboxing in general is only of minimal help if the attacker can arrange for the potentially hostile content to be displayed in the user's browser outside a sandboxed iframe. It is recommended that such content should be served from a separate dedicated domain, to limit the potential damage.
{{ htmlattrdef("seamless") }} {{ HTMLVersionInline(5) }} only
This Boolean attribute indicates that the browser should render the inline frame in a way that makes it appear to be part of the containing document, for example by applying CSS styles that apply to the <iframe> to the contained document before styles specified in that document, and by opening links in the contained documents in the parent browsing context (unless another setting prevents this).
{{ htmlattrdef("src") }}
The URL of the page to embed.
{{ htmlattrdef("srcdoc") }} {{ HTMLVersionInline(5) }} only
The content of the page that the embedded context is to contain.
{{ htmlattrdef("width") }}
Indicates the width of the frame {{ HTMLVersionInline(5) }} in CSS pixels, or {{ HTMLVersionInline(4.01) }} in pixels or as a percentage.

DOM interface

Scripting

Inline frames, like {{ HTMLElement("frame") }} elements, enter the window.frames pseudo-array.

From the DOM iframe element, scripts can get access to the window object of the included HTML page via the contentWindow property. The contentDocument property refers to the document element inside the iframe (this is equivalent to contentWindow.document), but is not supported by Internet Explorer versions before IE8.

From the inside of a frame, a script can get a reference to the parent window via window.parent.

Scripts trying to access a frame's content are subject to the same-origin policy, and cannot access most of the properties in the other window object if it was loaded from a different domain. This also applies to a script inside a frame trying to access its parent window. Cross-domain communication can still be achieved with window.postMessage.

Example

<script type="text/javascript">
  var iframe = window.getElementsByTagName( "iframe" )[ 0 ];
  alert( "Frame title: " + iframe.contentWindow.title );
</script>


<iframe src="page.html" width="300" height="300">
  <p>Your browser does not support iframes.</p>
</iframe>

Notes

{{ gecko_callout_heading("6.0") }}

Starting in Gecko 6.0 {{ geckoRelease("6.0") }}, rendering of inline frames correctly respects the borders of their containing element when they're rounded using {{ cssxref("border-radius") }}.

Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 1.0 {{ CompatVersionUnknown() }} {{ CompatVersionUnknown() }} {{ CompatVersionUnknown() }} {{ CompatVersionUnknown() }}
sandbox 4 {{ CompatGeckoDesktop("17.0") }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}
seamless 4 {{ CompatNo() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}
srcdoc 4 {{ CompatNo() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}
allowfullscreen 17 {{ property_prefix("webkit") }} {{ CompatGeckoDesktop("9.0") }} {{property_prefix("moz")}} {{ CompatNo() }} {{ CompatNo() }} {{ CompatNo() }}
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support {{ CompatVersionUnknown() }} {{ CompatVersionUnknown() }} {{ CompatVersionUnknown() }} {{ CompatVersionUnknown() }} {{ CompatVersionUnknown() }}
sandbox {{ CompatUnknown() }} {{ CompatGeckoMobile("17.0") }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}
seamless {{ CompatUnknown() }} {{ CompatNo() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}
srcdoc {{ CompatUnknown() }} {{ CompatNo() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatUnknown() }}
allowfullscreen {{ CompatUnknown() }} {{ CompatGeckoMobile("9.0") }}{{property_prefix("moz")}} {{ CompatNo() }} {{ CompatNo() }} {{ CompatNo() }}

{{ HTML:Element_Navigation() }}

Fuente de la revisión

<h2 id="Summary">Resumen</h2>
<p><span id="result_box" lang="es"><span class="hps">El elemento</span> <span class="hps">HTML</span> <span class="hps">inline</span> <span class="hps atn">frame (</span><span>&lt;iframe&gt;</span><span>) representa</span> <span class="hps">un contexto de navegación</span> <span class="hps">anidada,</span> <span class="hps">efectivamente</span> <span class="hps">incorporar</span> <span class="hps">otra página</span> <span class="hps">HTML en la</span> <span class="hps">página actual.</span> <span class="hps">Cada</span> <span class="hps">contexto de navegación</span> <span class="hps">tiene su propia historia</span>&nbsp;<span class="hps"> sesión</span> <span class="hps">y en el documento</span> <span class="hps">activo.</span> <span class="hps">El</span> <span class="hps">contexto de navegación</span> <span class="hps">que incluye el contenido</span> <span class="hps">implícito se</span> <span class="hps">llama el</span> <span class="hps">contexto de navegación</span> <span class="hps">principal.</span> <span class="hps">El</span> <span class="hps">contexto de navegación</span> <span class="hps atn">de nivel superior (</span><span>que</span> <span class="hps">no tiene padre</span><span>) es típicamente</span> <span class="hps">la</span> <span class="hps">ventana del navegador.</span></span></p>
<h2 id="Usage_context">Uso contexto</h2>
<table class="standard-table">
  <tbody>
    <tr>
      <td><span class="short_text" id="result_box" lang="es"><span class="hps">contenido</span> <span class="hps">Permitido</span></span></td>
      <td>Datos de caracter normal (<span id="result_box" lang="es"><span class="hps">referencias</span> <span class="hps">de texto y</span> <span class="hps">caracteres</span></span>)</td>
    </tr>
    <tr>
      <td>Omisión de Etiqueta</td>
      <td><span id="result_box" lang="es"><span class="hps">Ninguna,</span> <span class="hps">deben tener una</span> <span class="hps">etiqueta de inicio y</span> <span class="hps">una etiqueta final.</span></span></td>
    </tr>
    <tr>
      <td>Elementos padres permitidos</td>
      <td><span class="short_text" id="result_box" lang="es"><span class="hps gt-trans-draggable">Cualquier elemento</span> <span class="hps gt-trans-draggable">que acepte contenido</span> <span class="hps gt-trans-draggable">fraseo.</span></span></td>
    </tr>
    <tr>
      <td><span class="short_text" id="result_box" lang="es"><span class="hps">Normativa</span> <span class="hps">documento</span></span></td>
      <td><a class="external" href="http://www.w3.org/TR/html5/the-iframe-element.html#the-iframe-element" title="http://www.w3.org/TR/html5/the-iframe-element.html#the-iframe-element">HTML&nbsp;5, section 4.8.2</a>; <a class="external" href="http://www.w3.org/TR/html401/present/frames.html#h-16.5" title="http://www.w3.org/TR/html401/present/frames.html#h-16.5">HTML 4.01, section 16.5</a></td>
    </tr>
  </tbody>
</table>
<h2 id="Attributes">Atributos</h2>
<p><span id="result_box" lang="es"><span class="hps">Al igual que</span> <span class="hps">todos los elementos HTML</span><span>, este elemento</span> <span class="hps">admite los atributos</span> <span class="hps">globales.</span></span></p>
<dl>
  <dt>
    {{ htmlattrdef("align") }} {{ deprecated_inline() }} in {{ HTMLVersionInline(4.01) }}, {{ obsolete_inline() }} in {{ HTMLVersionInline(5) }}</dt>
  <dd>
    <span id="result_box" lang="es"><span class="hps">La alineación</span> <span class="hps">de este elemento</span> <span class="hps">con respecto al</span> <span class="hps">contexto que lo rodea.</span></span></dd>
  <dt>
    {{ htmlattrdef("frameborder") }}&nbsp;{{ HTMLVersionInline(4) }}&nbsp;only</dt>
  <dd style="margin-left: 40px;">
    El valor 1 (por defecto) indica al navegador establecer una frontera entre este marco y todo otro marco. <span class="long_text" id="result_box" lang="es"><span class="hps gt-trans-draggable">El valor 0</span> <span class="hps gt-trans-draggable">indica</span> <span class="hps gt-trans-draggable">que el navegador no</span> establece<span class="hps gt-trans-draggable"> una</span> <span class="hps gt-trans-draggable">frontera</span> <span class="hps gt-trans-draggable">entre este marco y</span> <span class="hps gt-trans-draggable">otros marcos.</span></span></dd>
  <dt>
    {{ htmlattrdef("height") }}</dt>
  <dd>
    Indica la altura del frame {{ HTMLVersionInline(5) }}en píxeles CSS, o {{ HTMLVersionInline(4.01) }} en píxeles o como un porcentaje.</dd>
  <dt>
    {{ htmlattrdef("longdesc") }} {{ HTMLVersionInline(4) }}&nbsp;only</dt>
  <dd style="margin-left: 40px;">
    Una URI de una descripción larga del marco. Debido al mal uso generalizado, esto no es útil para navegadores no visuales.</dd>
  <dt>
    {{ htmlattrdef("marginheight") }} {{ HTMLVersionInline(4) }}&nbsp;only</dt>
  <dd>
    The amount of space in pixels between the frame's content and its top and bottom margins.</dd>
  <dt>
    {{ htmlattrdef("marginwidth") }} {{ HTMLVersionInline(4) }}&nbsp;only</dt>
  <dd>
    The amount of space in pixels between the frame's content and its left and right margins.</dd>
  <dt>
    {{ htmlattrdef("mozallowfullscreen") }} {{ non-standard_inline() }}</dt>
  <dd>
    In Gecko 9.0 or later, this attribute can be set to <code>true</code> if the frame is allowed to be placed into full screen mode by calling its {{ domxref("element.mozRequestFullScreen()") }} method. If this isn't set, the element can't be placed into full screen mode.</dd>
  <dt>
    {{ htmlattrdef("webkitallowfullscreen") }} {{ non-standard_inline() }}</dt>
  <dd>
    In Chrome 17 or later (and maybe earlier), this attribute can be set to <code>true</code> if the frame is allowed to be placed into full screen mode by calling its {{ domxref("element.webkitRequestFullScreen()") }} method. If this isn't set, the element can't be placed into full screen mode.</dd>
  <dt>
    &nbsp;</dt>
  <dt>
    {{ htmlattrdef("mozapp") }} {{ non-standard_inline() }} {{ B2GOnlyInline() }}</dt>
  <dd>
    For frames hosting an <a href="/en/Apps" title="https://developer.mozilla.org/en/OpenWebApps">open web app</a>, this specifies the URL of the <a href="/en/Apps/Manifest" title="https://developer.mozilla.org/en/Apps/Manifest">app manifest</a>. This ensures that the app is loaded with the right permissions. See <a href="/en/DOM/Using_the_Browser_API" title="https://developer.mozilla.org/en/DOM/Using_the_Browser_API">Using the Browser API</a> for details. Available in Gecko 13.0 and later.</dd>
  <dt>
    {{ htmlattrdef("mozbrowser") }} {{ non-standard_inline() }} {{ B2GOnlyInline() }}</dt>
  <dd>
    Indicates that the frame is to appear like a top-level browser window to the embedded content. This means that <span id="summary_alias_container"><span id="short_desc_nonedit_display"><a href="/en/DOM/window.top" title="https://developer.mozilla.org/en/DOM/window.top"><code>window.top</code></a>, <a href="/en/DOM/window.parent" title="https://developer.mozilla.org/en/DOM/window.parent"><code>window.parent</code></a>, <a href="/en/DOM/window.frameElement" title="https://developer.mozilla.org/en/DOM/window.frameElement"><code>window.frameElement</code></a>, etc. will <em>not</em> reflect the frame hierarchy. This allows for a web browser UI to be implemented entirely with web technology, given the right permissions.</span></span> See <a href="/en/DOM/Using_the_Browser_API" title="https://developer.mozilla.org/en/DOM/Using_the_Browser_API">Using the Browser API</a> for details. Available in Gecko 13.0 and later.</dd>
  <dt>
    {{ htmlattrdef("name") }}</dt>
  <dd>
    A name for the embedded browsing context (or frame). This can be used as the value of the <strong>target</strong> attribute of an {{ HTMLElement("a") }} or {{ HTMLElement("form") }} element, or the formtarget attribute of an {{ HTMLElement("input") }} or {{ HTMLElement("button") }} element.</dd>
  <dt>
    {{ htmlattrdef("remote") }} {{ non-standard_inline() }} {{ B2GOnlyInline() }}</dt>
  <dd>
    Load the frame's page in a separate content process.</dd>
  <dt>
    {{ htmlattrdef("scrolling") }} {{ HTMLVersionInline(4) }}&nbsp;only</dt>
  <dd>
    Enumerated attribute indicating when the browser should provide a scroll bar (or other scrolling device) for the frame:
    <ul>
      <li><code>auto</code>:&nbsp;Only when needed.</li>
      <li><code>yes</code>: Always provide a scroll bar.</li>
      <li><code>no</code>: Never provide a scoll bar.</li>
    </ul>
  </dd>
  <dt>
    {{ htmlattrdef("sandbox") }}&nbsp;{{ HTMLVersionInline(5) }} only</dt>
  <dd>
    If specified as an empty string, this attribute enables extra restrictions on the content that can appear in the inline frame. The value of the attribute can be a space-separated list of tokens that lift particular restrictions. Valid tokens are:
    <ul>
      <li><code>allow-same-origin</code>:&nbsp;Allows the content to be treated as being from its normal origin. If this keyword is not used, the embedded content is treated as being from a unique origin.</li>
      <li><code>allow-top-navigation</code>: Allows the embedded browsing context to navigate (load) content to the top-level browsing context. If this keyword is not used, this operation is not allowed.</li>
      <li><code>allow-forms</code>: Allows the embedded browsing context to submit forms. If this keyword is not used, this operation is not allowed.</li>
      <li><code>allow-scripts</code>: Allows the embedded browsing context to run scripts (but not create pop-up windows). If this keyword is not used, this operation is not allowed.</li>
    </ul>
    <div class="note">
      <p><strong>Note:</strong></p>
      <ul>
        <li>When the embedded document has the same origin as the main page, it is strongly discouraged to use both <code>allow-scripts</code> and <code>allow-same-origin</code> at the same time, as that allows the embedded document to programmatically remove the <code>sandbox</code> attribute. Although it is accepted, this case is no more secure than not using the <code>sandbox</code> attribute.</li>
        <li>Sandboxing in general is only of minimal help if the attacker can arrange for the potentially hostile content to be displayed in the user's browser outside a sandboxed&nbsp;<code>iframe</code>. It is recommended that such content should be served from a <em>separate dedicated domain</em>, to limit the potential damage.</li>
      </ul>
    </div>
  </dd>
  <dt>
    {{ htmlattrdef("seamless") }} {{ HTMLVersionInline(5) }}&nbsp;only</dt>
  <dd>
    This Boolean attribute indicates that the browser should render the inline frame in a way that makes it appear to be part of the containing document, for example by applying CSS&nbsp;styles that apply to the <code>&lt;iframe&gt;</code>&nbsp;to the contained document before styles specified in that document, and by opening links in the contained documents in the parent browsing context (unless another setting prevents this).</dd>
  <dt>
    {{ htmlattrdef("src") }}</dt>
  <dd>
    The URL&nbsp;of the page to embed.</dd>
  <dt>
    {{ htmlattrdef("srcdoc") }} {{ HTMLVersionInline(5) }} only</dt>
  <dd>
    The content of the page that the embedded context is to contain.</dd>
  <dt>
    {{ htmlattrdef("width") }}</dt>
  <dd>
    Indicates the width of the frame {{ HTMLVersionInline(5) }} in CSS&nbsp;pixels, or {{ HTMLVersionInline(4.01) }} in pixels or as a percentage.</dd>
</dl>
<h2 id="DOM.C2.A0interface">DOM&nbsp;interface</h2>
<ul>
  <li><a href="/en/DOM/HTMLIFrameElement" title="en/DOM/HTMLIFrameElement">HTMLIFrameElement</a></li>
</ul>
<h2 id="Scripting">Scripting</h2>
<p>Inline frames, like {{ HTMLElement("frame") }}&nbsp;elements, enter the <code><a class="internal" href="/en/DOM/window.frames" title="en/DOM/window.frames">window.frames</a></code>&nbsp;pseudo-array.</p>
<p>From the DOM <code>iframe</code> element, scripts can get access to the <a class="internal" href="/en/DOM/window" title="en/DOM/window"><code>window</code></a> object of the included HTML page via the <code>contentWindow</code> property. The <code>contentDocument</code> property refers to the document element inside the <code>iframe</code> (this is equivalent to <code>contentWindow.document</code>), but is not supported by Internet Explorer versions before IE8.</p>
<p>From the inside of a frame, a script can get a reference to the parent window via <code><a class="internal" href="/en/DOM/window.parent" title="en/DOM/window.parent">window.parent</a></code>.</p>
<p>Scripts trying to access a frame's content are subject to the <a class="internal" href="/en/Same_origin_policy_for_JavaScript" title="en/Same origin policy for JavaScript">same-origin policy</a>, and cannot access most of the properties in the other window object if it was loaded from a different domain. This also applies to a script inside a frame trying to access its parent window. Cross-domain communication can still be achieved with <code><a class="internal" href="/en/DOM/window.postMessage" title="en/DOM/window.postMessage">window.postMessage</a></code>.</p>
<h2 id="Example">Example</h2>
<pre class="brush: html">
&lt;script type="text/javascript"&gt;
  var iframe = window.getElementsByTagName( "iframe" )[ 0 ];
  alert( "Frame title: " + iframe.contentWindow.title );
&lt;/script&gt;


&lt;iframe src="page.html" width="300" height="300"&gt;
  &lt;p&gt;Your browser does not support iframes.&lt;/p&gt;
&lt;/iframe&gt;</pre>
<h2 id="Notes">Notes</h2>
<div class="geckoVersionNote">
  <p>{{ gecko_callout_heading("6.0") }}</p>
  <p>Starting in&nbsp;Gecko 6.0 {{ geckoRelease("6.0") }}, rendering of inline frames correctly respects the borders of their containing element when they're rounded using {{ cssxref("border-radius") }}.</p>
</div>
<h2 id="Browser_Compatibility" name="Browser_Compatibility">Browser compatibility</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Chrome</th>
        <th>Firefox (Gecko)</th>
        <th>Internet Explorer</th>
        <th>Opera</th>
        <th>Safari (WebKit)</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>1.0</td>
        <td>{{ CompatVersionUnknown() }}</td>
        <td>{{ CompatVersionUnknown() }}</td>
        <td>{{ CompatVersionUnknown() }}</td>
        <td>{{ CompatVersionUnknown() }}</td>
      </tr>
      <tr>
        <td><code>sandbox</code></td>
        <td>4</td>
        <td>{{ CompatGeckoDesktop("17.0") }}</td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{ CompatUnknown() }}</td>
      </tr>
      <tr>
        <td><code>seamless</code></td>
        <td>4</td>
        <td>{{ CompatNo() }}</td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{ CompatUnknown() }}</td>
      </tr>
      <tr>
        <td><code>srcdoc</code></td>
        <td>4</td>
        <td>{{ CompatNo() }}</td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{ CompatUnknown() }}</td>
      </tr>
      <tr>
        <td><code>allowfullscreen</code></td>
        <td>17 {{ property_prefix("webkit") }}</td>
        <td>{{ CompatGeckoDesktop("9.0") }} {{property_prefix("moz")}}</td>
        <td>{{ CompatNo() }}</td>
        <td>{{ CompatNo() }}</td>
        <td>{{ CompatNo() }}</td>
      </tr>
    </tbody>
  </table>
</div>
<div id="compat-mobile">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Android</th>
        <th>Firefox Mobile (Gecko)</th>
        <th>IE&nbsp;Phone</th>
        <th>Opera Mobile</th>
        <th>Safari Mobile</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{ CompatVersionUnknown() }}</td>
        <td>{{ CompatVersionUnknown() }}</td>
        <td>{{ CompatVersionUnknown() }}</td>
        <td>{{ CompatVersionUnknown() }}</td>
        <td>{{ CompatVersionUnknown() }}</td>
      </tr>
      <tr>
        <td><code>sandbox</code></td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{ CompatGeckoMobile("17.0") }}</td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{ CompatUnknown() }}</td>
      </tr>
      <tr>
        <td><code>seamless</code></td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{ CompatNo() }}</td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{ CompatUnknown() }}</td>
      </tr>
      <tr>
        <td><code>srcdoc</code></td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{ CompatNo() }}</td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{ CompatUnknown() }}</td>
      </tr>
      <tr>
        <td><code>allowfullscreen</code></td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{ CompatGeckoMobile("9.0") }}{{property_prefix("moz")}}</td>
        <td>{{ CompatNo() }}</td>
        <td>{{ CompatNo() }}</td>
        <td>{{ CompatNo() }}</td>
      </tr>
    </tbody>
  </table>
</div>
<p>{{ HTML:Element_Navigation() }}</p>
Revertir a esta revisión