Skip to content

Commit

Permalink
[giow] (1) Make target=_self override the seamless attribute's naviga…
Browse files Browse the repository at this point in the history
…tion mechanism.

git-svn-id: http://svn.whatwg.org/webapps@5275 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 10, 2010
1 parent 53c18db commit 5ae9881
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 36 deletions.
33 changes: 21 additions & 12 deletions complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -22011,10 +22011,11 @@ <h4 id=the-iframe-element><span class=secno>4.8.2 </span>The <dfn><code>iframe</

<div class=impl>

<ul><li><p>The user agent must set the <dfn id=seamless-browsing-context-flag>seamless browsing
context flag</dfn> to true for that <a href=#browsing-context>browsing
context</a>. This will <a href=#seamlessLinks>cause links to
open in the parent browsing context</a>.</li>
<ul><li><p>The user agent must set the <dfn id=seamless-browsing-context-flag>seamless browsing context
flag</dfn> to true for that <a href=#browsing-context>browsing context</a>. This
will <a href=#seamlessLinks>cause links to open in the parent
browsing context</a> unless an <a href=#explicit-self-navigation-override>explicit self-navigation
override</a> is used (<code title="">target="_self"</code>).</li>

<li><p>In a CSS-supporting user agent: the user agent must add all
the style sheets that apply to the <code><a href=#the-iframe-element>iframe</a></code> element to
Expand Down Expand Up @@ -57804,7 +57805,10 @@ <h4 id=browsing-context-names><span class=secno>6.1.6 </span>Browsing context na

<ol><li><p>If the given browsing context name is the empty string or
<code title="">_self</code>, then the chosen browsing context must
be the current one.</li>
be the current one. This is an <dfn id=explicit-self-navigation-override>explicit self-navigation
override</dfn>, which overrides the behavior of the <a href=#seamless-browsing-context-flag>seamless
browsing context flag</a> set by the <code title=attr-iframe-seamless><a href=#attr-iframe-seamless>seamless</a></code> attribute on
<code><a href=#the-iframe-element>iframe</a></code> elements.</li>

<li><p>If the given browsing context name is <code title="">_parent</code>, then the chosen browsing context must be
the <a href=#parent-browsing-context><em>parent</em> browsing context</a> of the current
Expand All @@ -57828,6 +57832,10 @@ <h4 id=browsing-context-names><span class=secno>6.1.6 </span>Browsing context na
arbitrary consistent manner, such as the most recently opened,
most recently focused, or more closely related.</p>

<p>If the browsing context is chosen by this step to be the
current browsing context, then this is also an <a href=#explicit-self-navigation-override>explicit
self-navigation override</a>.</p>

</li>

<li>
Expand Down Expand Up @@ -57912,7 +57920,7 @@ <h3 id=the-window-object><span class=secno>6.2 </span>The <code><a href=#window>
readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-window title=dom-window>window</a>;
readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-self title=dom-self>self</a>;
readonly attribute <a href=#document>Document</a> <a href=#dom-document title=dom-document>document</a>;
attribute DOMString <a href=#dom-name title=dom-name>name</a>;
attribute DOMString <a href=#dom-name title=dom-name>name</a>; <!-- not [Replaceable] per WebKit and IE8 -->
[PutForwards=<a href=#dom-location-href title=dom-location-href>href</a>] readonly attribute <a href=#location>Location</a> <a href=#dom-location title=dom-location>location</a>;
readonly attribute <a href=#history-0>History</a> <a href=#dom-history title=dom-history>history</a>;
readonly attribute <a href=#undomanager>UndoManager</a> <a href=#dom-undomanager title=dom-undoManager>undoManager</a>;
Expand Down Expand Up @@ -59965,12 +59973,13 @@ <h4 id=navigating-across-documents><span class=secno>6.5.1 </span>Navigating acr
<li id=seamlessLinks><p>If the <a href=#source-browsing-context>source browsing
context</a> is the same as the <a href=#browsing-context>browsing context</a>
being navigated, and this browsing context has its <a href=#seamless-browsing-context-flag>seamless
browsing context flag</a> set, then find the nearest
<a href=#ancestor-browsing-context>ancestor browsing context</a> that does not have its
<a href=#seamless-browsing-context-flag>seamless browsing context flag</a> set, and continue these
steps as if <em>that</em> <a href=#browsing-context>browsing context</a> was the one
that was going to be <a href=#navigate title=navigate>navigated</a>
instead.</li>
browsing context flag</a> set, and the <a href=#browsing-context>browsing
context</a> being navigated was not chosen using an
<a href=#explicit-self-navigation-override>explicit self-navigation override</a>, then find the
nearest <a href=#ancestor-browsing-context>ancestor browsing context</a> that does not have
its <a href=#seamless-browsing-context-flag>seamless browsing context flag</a> set, and continue
these steps as if <em>that</em> <a href=#browsing-context>browsing context</a> was
the one that was going to be <a href=#navigate title=navigate>navigated</a> instead.</li>

<li><p>If there is a preexisting attempt to navigate the
<a href=#browsing-context>browsing context</a>, and the <a href=#source-browsing-context>source browsing
Expand Down
33 changes: 21 additions & 12 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -21938,10 +21938,11 @@ href="?audio"&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;</pre>

<div class=impl>

<ul><li><p>The user agent must set the <dfn id=seamless-browsing-context-flag>seamless browsing
context flag</dfn> to true for that <a href=#browsing-context>browsing
context</a>. This will <a href=#seamlessLinks>cause links to
open in the parent browsing context</a>.</li>
<ul><li><p>The user agent must set the <dfn id=seamless-browsing-context-flag>seamless browsing context
flag</dfn> to true for that <a href=#browsing-context>browsing context</a>. This
will <a href=#seamlessLinks>cause links to open in the parent
browsing context</a> unless an <a href=#explicit-self-navigation-override>explicit self-navigation
override</a> is used (<code title="">target="_self"</code>).</li>

<li><p>In a CSS-supporting user agent: the user agent must add all
the style sheets that apply to the <code><a href=#the-iframe-element>iframe</a></code> element to
Expand Down Expand Up @@ -57731,7 +57732,10 @@ _:n2 hcard:adr%20street-address "Avenue Q" ;

<ol><li><p>If the given browsing context name is the empty string or
<code title="">_self</code>, then the chosen browsing context must
be the current one.</li>
be the current one. This is an <dfn id=explicit-self-navigation-override>explicit self-navigation
override</dfn>, which overrides the behavior of the <a href=#seamless-browsing-context-flag>seamless
browsing context flag</a> set by the <code title=attr-iframe-seamless><a href=#attr-iframe-seamless>seamless</a></code> attribute on
<code><a href=#the-iframe-element>iframe</a></code> elements.</li>

<li><p>If the given browsing context name is <code title="">_parent</code>, then the chosen browsing context must be
the <a href=#parent-browsing-context><em>parent</em> browsing context</a> of the current
Expand All @@ -57755,6 +57759,10 @@ _:n2 hcard:adr%20street-address "Avenue Q" ;
arbitrary consistent manner, such as the most recently opened,
most recently focused, or more closely related.</p>

<p>If the browsing context is chosen by this step to be the
current browsing context, then this is also an <a href=#explicit-self-navigation-override>explicit
self-navigation override</a>.</p>

</li>

<li>
Expand Down Expand Up @@ -57839,7 +57847,7 @@ interface <dfn id=window>Window</dfn> {
readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-window title=dom-window>window</a>;
readonly attribute <a href=#windowproxy>WindowProxy</a> <a href=#dom-self title=dom-self>self</a>;
readonly attribute <a href=#document>Document</a> <a href=#dom-document title=dom-document>document</a>;
attribute DOMString <a href=#dom-name title=dom-name>name</a>;
attribute DOMString <a href=#dom-name title=dom-name>name</a>; <!-- not [Replaceable] per WebKit and IE8 -->
[PutForwards=<a href=#dom-location-href title=dom-location-href>href</a>] readonly attribute <a href=#location>Location</a> <a href=#dom-location title=dom-location>location</a>;
readonly attribute <a href=#history-0>History</a> <a href=#dom-history title=dom-history>history</a>;
readonly attribute <a href=#undomanager>UndoManager</a> <a href=#dom-undomanager title=dom-undoManager>undoManager</a>;
Expand Down Expand Up @@ -59892,12 +59900,13 @@ State: &lt;OUTPUT NAME=I&gt;1&lt;/OUTPUT&gt; &lt;INPUT VALUE="Increment" TYPE=BU
<li id=seamlessLinks><p>If the <a href=#source-browsing-context>source browsing
context</a> is the same as the <a href=#browsing-context>browsing context</a>
being navigated, and this browsing context has its <a href=#seamless-browsing-context-flag>seamless
browsing context flag</a> set, then find the nearest
<a href=#ancestor-browsing-context>ancestor browsing context</a> that does not have its
<a href=#seamless-browsing-context-flag>seamless browsing context flag</a> set, and continue these
steps as if <em>that</em> <a href=#browsing-context>browsing context</a> was the one
that was going to be <a href=#navigate title=navigate>navigated</a>
instead.</li>
browsing context flag</a> set, and the <a href=#browsing-context>browsing
context</a> being navigated was not chosen using an
<a href=#explicit-self-navigation-override>explicit self-navigation override</a>, then find the
nearest <a href=#ancestor-browsing-context>ancestor browsing context</a> that does not have
its <a href=#seamless-browsing-context-flag>seamless browsing context flag</a> set, and continue
these steps as if <em>that</em> <a href=#browsing-context>browsing context</a> was
the one that was going to be <a href=#navigate title=navigate>navigated</a> instead.</li>

<li><p>If there is a preexisting attempt to navigate the
<a href=#browsing-context>browsing context</a>, and the <a href=#source-browsing-context>source browsing
Expand Down
36 changes: 24 additions & 12 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -23472,10 +23472,12 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>

<ul>

<li><p>The user agent must set the <dfn>seamless browsing
context flag</dfn> to true for that <span>browsing
context</span>. This will <a href="#seamlessLinks">cause links to
open in the parent browsing context</a>.</p></li>
<li><p>The user agent must set the <dfn>seamless browsing context
flag</dfn> to true for that <span>browsing context</span>. This
will <a href="#seamlessLinks">cause links to open in the parent
browsing context</a> unless an <span>explicit self-navigation
override</span> is used (<code
title="">target="_self"</code>).</p></li>

<li><p>In a CSS-supporting user agent: the user agent must add all
the style sheets that apply to the <code>iframe</code> element to
Expand Down Expand Up @@ -65254,7 +65256,11 @@ _:n2 hcard:adr%20street-address "Avenue Q" ;

<li><p>If the given browsing context name is the empty string or
<code title="">_self</code>, then the chosen browsing context must
be the current one.</p></li>
be the current one. This is an <dfn>explicit self-navigation
override</dfn>, which overrides the behavior of the <span>seamless
browsing context flag</span> set by the <code
title="attr-iframe-seamless">seamless</code> attribute on
<code>iframe</code> elements.</p></li>

<li><p>If the given browsing context name is <code
title="">_parent</code>, then the chosen browsing context must be
Expand All @@ -65281,6 +65287,10 @@ _:n2 hcard:adr%20street-address "Avenue Q" ;
arbitrary consistent manner, such as the most recently opened,
most recently focused, or more closely related.</p>

<p>If the browsing context is chosen by this step to be the
current browsing context, then this is also an <span>explicit
self-navigation override</span>.</p>

</li>

<li>
Expand Down Expand Up @@ -65377,7 +65387,7 @@ interface <dfn>Window</dfn> {
readonly attribute <span>WindowProxy</span> <span title="dom-window">window</span>;
readonly attribute <span>WindowProxy</span> <span title="dom-self">self</span>;
readonly attribute <span>Document</span> <span title="dom-document">document</span>;
attribute DOMString <span title="dom-name">name</span>;
attribute DOMString <span title="dom-name">name</span>; <!-- not [Replaceable] per WebKit and IE8 -->
[PutForwards=<span title="dom-location-href">href</span>] readonly attribute <span>Location</span> <span title="dom-location">location</span>;
readonly attribute <span>History</span> <span title="dom-history">history</span>;
readonly attribute <span>UndoManager</span> <span title="dom-undoManager">undoManager</span>;
Expand Down Expand Up @@ -67713,12 +67723,14 @@ State: &lt;OUTPUT NAME=I>1&lt;/OUTPUT> &lt;INPUT VALUE="Increment" TYPE=BUTTON O
<li id="seamlessLinks"><p>If the <span>source browsing
context</span> is the same as the <span>browsing context</span>
being navigated, and this browsing context has its <span>seamless
browsing context flag</span> set, then find the nearest
<span>ancestor browsing context</span> that does not have its
<span>seamless browsing context flag</span> set, and continue these
steps as if <em>that</em> <span>browsing context</span> was the one
that was going to be <span title="navigate">navigated</span>
instead.</p></li>
browsing context flag</span> set, and the <span>browsing
context</span> being navigated was not chosen using an
<span>explicit self-navigation override</span>, then find the
nearest <span>ancestor browsing context</span> that does not have
its <span>seamless browsing context flag</span> set, and continue
these steps as if <em>that</em> <span>browsing context</span> was
the one that was going to be <span
title="navigate">navigated</span> instead.</p></li>

<li><p>If there is a preexisting attempt to navigate the
<span>browsing context</span>, and the <span>source browsing
Expand Down

0 comments on commit 5ae9881

Please sign in to comment.