Skip to content
Permalink
Browse files

[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 3a1460761247abee75a4e22701f5ac1b2a555b8b
Showing with 18 additions and 12 deletions.
  1. +6 −4 complete.html
  2. +6 −4 index
  3. +6 −4 source

<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
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>


<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>

10 index

<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
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>


<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>

10 source

<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
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>


<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>

0 comments on commit 3a14607

Please sign in to comment.
You can’t perform that action at this time.