Permalink
Browse files

Add definition of allowed to use. (#744)

  • Loading branch information...
adrianba authored and travisleithead committed Dec 7, 2016
1 parent 79e2dae commit c309da8f13200e229aaa43a14f13793c8ad9ea49
Showing with 15 additions and 2 deletions.
  1. +15 −2 sections/semantics-embedded-content.include
@@ -4004,7 +4004,7 @@ My <img src="heart.png" alt="heart"> breaks.
The <dfn element-attr for="iframe"><code>allowfullscreen</code></dfn> attribute is a
<a>boolean attribute</a>. When specified, it indicates that {{Document}} objects in
the <{iframe}> element's <a>browsing context</a> are to be allowed to use <code>requestFullscreen()</code> (if it's not blocked for other
the <{iframe}> element's <a>browsing context</a> are to be <a>allowed to use</a> <code>requestFullscreen()</code> (if it's not blocked for other
reasons, e.g., there is another ancestor <code>iframe</code> without this attribute set).
<div class="example">
@@ -4031,9 +4031,22 @@ My &lt;img src="heart.png" alt="heart"&gt; breaks.
The <dfn element-attr for="iframe"><code>allowpaymentrequest</code></dfn>
attribute is a <a>boolean attribute</a>. When specified, it indicates that
{{Document}} objects in the <{iframe}> element's <a>browsing context</a>
are to be allowed to use the <a><code>PaymentRequest</code></a> interface
are to be <a>allowed to use</a> the <a><code>PaymentRequest</code></a> interface
to make payment requests.
To determine whether a {{Document}} object <var>document</var> is
<dfn id="allowed-to-use">allowed to use</dfn> the feature indicated by attribute name
<var>allowattribute</var>, run these steps:
<ol>
<li><p>If <var>document</var> has no <a>browsing context</a>, then return false.</p></li>
<li><p>If <var>document</var>'s <a>browsing context</a> is a <a>top-level browsing context</a>, then return true.</p></li>
<li><p>If <var>document</var>'s <a>browsing context</a> has a <a>browsing context container</a> that is an <{iframe}> element with an
<var>allowattribute</var> attribute specified, and whose <a>node document</a> is
<a>allowed to use</a> the feature indicated by <var>allowattribute</var>, then return true.</p></li>
<li><p>Return false.</p></li>
</ol>
<hr />
The <{iframe}> element supports <a>dimension attributes</a> for cases where the

0 comments on commit c309da8

Please sign in to comment.