Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (3) Handle the case of removing the 'src' attribute on a live …
…<iframe>, and some minor clarity changes.

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=23637
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@8289 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 15, 2013
1 parent 3b100eb commit 3a14607
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
10 changes: 6 additions & 4 deletions complete.html
Expand Up @@ -22676,7 +22676,7 @@ <h4 id=the-iframe-element><span class=secno>4.7.2 </span>The <dfn><code>iframe</

<hr><!-- SRC/SRCDOC PROCESSING MODEL --><p>When an <code><a href=#the-iframe-element>iframe</a></code> element is <a href=#insert-an-element-into-a-document title="insert an element into a document">inserted
into a document</a>, the user agent must create a <a href=#nested-browsing-context>nested browsing context</a>, and
then <a href=#process-the-iframe-attributes>process the <code>iframe</code> attributes</a> for the first time.</p>
then <a href=#process-the-iframe-attributes>process the <code>iframe</code> attributes</a> for the "first time".</p>

<p>When an <code><a href=#the-iframe-element>iframe</a></code> element is <a href=#remove-an-element-from-a-document title="remove an element from a document">removed
from a document</a>, the user agent must <a href=#a-browsing-context-is-discarded title="a browsing context is
Expand Down Expand Up @@ -22708,8 +22708,8 @@ <h4 id=the-iframe-element><span class=secno>4.7.2 </span>The <dfn><code>iframe</
resulting <code><a href=#document>Document</a></code> must be considered <a href=#an-iframe-srcdoc-document>an <code>iframe</code> <code title=attr-iframe-srcdoc>srcdoc</code> document</a>.</dd>

<dt>Otherwise, if the element has no <code title=attr-iframe-src><a href=#attr-iframe-src>src</a></code> attribute
specified, and the user agent is processing the <code><a href=#the-iframe-element>iframe</a></code>'s attributes for the first
time</dt>
specified, and the user agent is processing the <code><a href=#the-iframe-element>iframe</a></code>'s attributes for the "first
time"</dt>

<dd>

Expand All @@ -22726,8 +22726,10 @@ <h4 id=the-iframe-element><span class=secno>4.7.2 </span>The <dfn><code>iframe</

<ol><li>

<p>If the value of the <code title=attr-iframe-src><a href=#attr-iframe-src>src</a></code> attribute is the empty string,
<!--CLEANUP-->
<p>If the value of the <code title=attr-iframe-src><a href=#attr-iframe-src>src</a></code> attribute is missing, or its value is the empty string,
let <var title="">url</var> be the string "<code><a href=#about:blank>about:blank</a></code>".</p>
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2641 -->

<p>Otherwise, <a href=#resolve-a-url title="resolve a url">resolve</a> the value of the <code title=attr-iframe-src><a href=#attr-iframe-src>src</a></code> attribute, relative to the <code><a href=#the-iframe-element>iframe</a></code> element.</p>

Expand Down
10 changes: 6 additions & 4 deletions index
Expand Up @@ -22676,7 +22676,7 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>

<hr><!-- SRC/SRCDOC PROCESSING MODEL --><p>When an <code><a href=#the-iframe-element>iframe</a></code> element is <a href=#insert-an-element-into-a-document title="insert an element into a document">inserted
into a document</a>, the user agent must create a <a href=#nested-browsing-context>nested browsing context</a>, and
then <a href=#process-the-iframe-attributes>process the <code>iframe</code> attributes</a> for the first time.</p>
then <a href=#process-the-iframe-attributes>process the <code>iframe</code> attributes</a> for the "first time".</p>

<p>When an <code><a href=#the-iframe-element>iframe</a></code> element is <a href=#remove-an-element-from-a-document title="remove an element from a document">removed
from a document</a>, the user agent must <a href=#a-browsing-context-is-discarded title="a browsing context is
Expand Down Expand Up @@ -22708,8 +22708,8 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>
resulting <code><a href=#document>Document</a></code> must be considered <a href=#an-iframe-srcdoc-document>an <code>iframe</code> <code title=attr-iframe-srcdoc>srcdoc</code> document</a>.</dd>

<dt>Otherwise, if the element has no <code title=attr-iframe-src><a href=#attr-iframe-src>src</a></code> attribute
specified, and the user agent is processing the <code><a href=#the-iframe-element>iframe</a></code>'s attributes for the first
time</dt>
specified, and the user agent is processing the <code><a href=#the-iframe-element>iframe</a></code>'s attributes for the "first
time"</dt>

<dd>

Expand All @@ -22726,8 +22726,10 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>

<ol><li>

<p>If the value of the <code title=attr-iframe-src><a href=#attr-iframe-src>src</a></code> attribute is the empty string,
<!--CLEANUP-->
<p>If the value of the <code title=attr-iframe-src><a href=#attr-iframe-src>src</a></code> attribute is missing, or its value is the empty string,
let <var title="">url</var> be the string "<code><a href=#about:blank>about:blank</a></code>".</p>
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2641 -->

<p>Otherwise, <a href=#resolve-a-url title="resolve a url">resolve</a> the value of the <code title=attr-iframe-src><a href=#attr-iframe-src>src</a></code> attribute, relative to the <code><a href=#the-iframe-element>iframe</a></code> element.</p>

Expand Down
10 changes: 6 additions & 4 deletions source
Expand Up @@ -23820,7 +23820,7 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>

<p>When an <code>iframe</code> element is <span data-x="insert an element into a document">inserted
into a document</span>, the user agent must create a <span>nested browsing context</span>, and
then <span>process the <code>iframe</code> attributes</span> for the first time.</p>
then <span>process the <code>iframe</code> attributes</span> for the "first time".</p>

<p>When an <code>iframe</code> element is <span data-x="remove an element from a document">removed
from a document</span>, the user agent must <span data-x="a browsing context is
Expand Down Expand Up @@ -23856,8 +23856,8 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
data-x="attr-iframe-srcdoc">srcdoc</code> document</span>.</p></dd>

<dt>Otherwise, if the element has no <code data-x="attr-iframe-src">src</code> attribute
specified, and the user agent is processing the <code>iframe</code>'s attributes for the first
time</dt>
specified, and the user agent is processing the <code>iframe</code>'s attributes for the "first
time"</dt>

<dd>

Expand All @@ -23876,8 +23876,10 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>

<li>

<p>If the value of the <code data-x="attr-iframe-src">src</code> attribute is the empty string,
<!--CLEANUP-->
<p>If the value of the <code data-x="attr-iframe-src">src</code> attribute is missing, or its value is the empty string,
let <var data-x="">url</var> be the string "<code>about:blank</code>".</p>
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2641 -->

<p>Otherwise, <span data-x="resolve a url">resolve</span> the value of the <code
data-x="attr-iframe-src">src</code> attribute, relative to the <code>iframe</code> element.</p>
Expand Down

0 comments on commit 3a14607

Please sign in to comment.