Permalink
Browse files

[giow] (2) Make <base> take effect everywhere, not just as a child of…

… <head>.

git-svn-id: http://svn.whatwg.org/webapps@5711 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 62da2b2 commit 04934bd9c5d27a1db091c5ac61328f3f21023195 @Hixie Hixie committed Dec 8, 2010
Showing with 51 additions and 61 deletions.
  1. +17 −20 complete.html
  2. +17 −20 index
  3. +17 −21 source
View
@@ -214,7 +214,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1>Web Applications 1.0</h1>
- <h2 class="no-num no-toc">Draft Standard &mdash; 7 December 2010</h2>
+ <h2 class="no-num no-toc">Draft Standard &mdash; 8 December 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -5930,15 +5930,11 @@ <h4 id=terminology-0><span class=secno>2.6.1 </span>Terminology</h4>
context</a>'s <a href=#browsing-context-container>browsing context container</a>'s
<code><a href=#document>Document</a></code> instead.</li>
- <li><p>If there is no <code><a href=#the-base-element>base</a></code> element that is both a
- child of <a href=#the-head-element>the <code>head</code> element</a> and has an
- <code title=attr-base-href><a href=#attr-base-href>href</a></code> attribute, then the
+ <li><p>If there is no <code><a href=#the-base-element>base</a></code> element that has an <code title=attr-base-href><a href=#attr-base-href>href</a></code> attribute, then the
<a href=#document-base-url>document base URL</a> is <var title="">fallback base
- url</var>.</li>
-
- <li><p>Otherwise, let <var title="">url</var> be the value of the
- <code title=attr-base-href><a href=#attr-base-href>href</a></code> attribute of the first
- such element.</li>
+ url</var>. Otherwise, let <var title="">url</var> be the value of
+ the <code title=attr-base-href><a href=#attr-base-href>href</a></code> attribute of the
+ first such element.</li>
<li><p><a href=#resolve-a-url title="resolve a URL">Resolve</a> <var title="">url</var> relative to <var title="">fallback base
url</var> (thus, the <code><a href=#the-base-element>base</a></code> <code title=attr-base-href><a href=#attr-base-href>href</a></code> attribute isn't affected by
@@ -46777,11 +46773,11 @@ <h5 id=form-submission-0><span class=secno>4.10.19.6 </span>Form submission</h5>
element is a <a href=#concept-submit-button title=concept-submit-button>submit
button</a> and has such an attribute; or the value of its
<a href=#form-owner>form owner</a>'s <code title=attr-fs-target><a href=#attr-fs-target>target</a></code>
- attribute, if <em>it</em> has such an attribute; or, if one of the
- child nodes of <a href=#the-head-element>the <code>head</code> element</a> is a
- <code><a href=#the-base-element>base</a></code> element with a <code title=attr-base-target><a href=#attr-base-target>target</a></code> attribute, then the value of
- the <code title=attr-base-target><a href=#attr-base-target>target</a></code> attribute of the
- first such <code><a href=#the-base-element>base</a></code> element; or, if there is no such
+ attribute, if <em>it</em> has such an attribute; or, if the
+ <code><a href=#document>Document</a></code> contains a <code><a href=#the-base-element>base</a></code> element with a
+ <code title=attr-base-target><a href=#attr-base-target>target</a></code> attribute, then the
+ value of the <code title=attr-base-target><a href=#attr-base-target>target</a></code> attribute
+ of the first such <code><a href=#the-base-element>base</a></code> element; or, if there is no such
element, the empty string.</p> <!-- c.f. hyperlink following -->
<hr><p>The <dfn id=attr-fs-novalidate title=attr-fs-novalidate><code>novalidate</code></dfn>
@@ -49997,15 +49993,16 @@ <h4 id=following-hyperlinks><span class=secno>4.12.3 </span><dfn>Following hyper
as the browsing context to be navigated.</p>
<p>Otherwise, if the element is an <code><a href=#the-a-element>a</a></code> or
- <code><a href=#the-area-element>area</a></code> element with no <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code> attribute, but one of
- the child nodes of <a href=#the-head-element>the <code>head</code> element</a> is a
- <code><a href=#the-base-element>base</a></code> element with a <code title=attr-base-target><a href=#attr-base-target>target</a></code> attribute, then the browsing
- context that is navigated must be chosen by applying <a href=#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>the rules
- for choosing a browsing context given a browsing context
- name</a>, using the value of the <code title=attr-base-target><a href=#attr-base-target>target</a></code> attribute of the first such
+ <code><a href=#the-area-element>area</a></code> element with no <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code> attribute, but the
+ <code><a href=#document>Document</a></code> contains a <code><a href=#the-base-element>base</a></code> element with a
+ <code title=attr-base-target><a href=#attr-base-target>target</a></code> attribute, then the
+ browsing context that is navigated must be chosen by applying
+ <a href=#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>the rules for choosing a browsing context given a browsing
+ context name</a>, using the value of the <code title=attr-base-target><a href=#attr-base-target>target</a></code> attribute of the first such
<code><a href=#the-base-element>base</a></code> element as the browsing context name. If these
rules result in the creation of a new <a href=#browsing-context>browsing context</a>,
it must be navigated with <a href=#replacement-enabled>replacement enabled</a>.</p>
+ <!-- c.f. concept-fs-target -->
<p>Otherwise, the browsing context that must be navigated is the
same browsing context as the one which the element itself is in.</p>
View
@@ -218,7 +218,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1>HTML5 (including next generation additions still in development)</h1>
- <h2 class="no-num no-toc">Draft Standard &mdash; 7 December 2010</h2>
+ <h2 class="no-num no-toc">Draft Standard &mdash; 8 December 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -5908,15 +5908,11 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
context</a>'s <a href=#browsing-context-container>browsing context container</a>'s
<code><a href=#document>Document</a></code> instead.</li>
- <li><p>If there is no <code><a href=#the-base-element>base</a></code> element that is both a
- child of <a href=#the-head-element>the <code>head</code> element</a> and has an
- <code title=attr-base-href><a href=#attr-base-href>href</a></code> attribute, then the
+ <li><p>If there is no <code><a href=#the-base-element>base</a></code> element that has an <code title=attr-base-href><a href=#attr-base-href>href</a></code> attribute, then the
<a href=#document-base-url>document base URL</a> is <var title="">fallback base
- url</var>.</li>
-
- <li><p>Otherwise, let <var title="">url</var> be the value of the
- <code title=attr-base-href><a href=#attr-base-href>href</a></code> attribute of the first
- such element.</li>
+ url</var>. Otherwise, let <var title="">url</var> be the value of
+ the <code title=attr-base-href><a href=#attr-base-href>href</a></code> attribute of the
+ first such element.</li>
<li><p><a href=#resolve-a-url title="resolve a URL">Resolve</a> <var title="">url</var> relative to <var title="">fallback base
url</var> (thus, the <code><a href=#the-base-element>base</a></code> <code title=attr-base-href><a href=#attr-base-href>href</a></code> attribute isn't affected by
@@ -46758,11 +46754,11 @@ out of 233&thinsp;257&thinsp;824 bytes available&lt;/meter&gt;&lt;/p&gt;</pre>
element is a <a href=#concept-submit-button title=concept-submit-button>submit
button</a> and has such an attribute; or the value of its
<a href=#form-owner>form owner</a>'s <code title=attr-fs-target><a href=#attr-fs-target>target</a></code>
- attribute, if <em>it</em> has such an attribute; or, if one of the
- child nodes of <a href=#the-head-element>the <code>head</code> element</a> is a
- <code><a href=#the-base-element>base</a></code> element with a <code title=attr-base-target><a href=#attr-base-target>target</a></code> attribute, then the value of
- the <code title=attr-base-target><a href=#attr-base-target>target</a></code> attribute of the
- first such <code><a href=#the-base-element>base</a></code> element; or, if there is no such
+ attribute, if <em>it</em> has such an attribute; or, if the
+ <code><a href=#document>Document</a></code> contains a <code><a href=#the-base-element>base</a></code> element with a
+ <code title=attr-base-target><a href=#attr-base-target>target</a></code> attribute, then the
+ value of the <code title=attr-base-target><a href=#attr-base-target>target</a></code> attribute
+ of the first such <code><a href=#the-base-element>base</a></code> element; or, if there is no such
element, the empty string.</p> <!-- c.f. hyperlink following -->
<hr><p>The <dfn id=attr-fs-novalidate title=attr-fs-novalidate><code>novalidate</code></dfn>
@@ -49978,15 +49974,16 @@ local.onconnect = function (event) {
as the browsing context to be navigated.</p>
<p>Otherwise, if the element is an <code><a href=#the-a-element>a</a></code> or
- <code><a href=#the-area-element>area</a></code> element with no <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code> attribute, but one of
- the child nodes of <a href=#the-head-element>the <code>head</code> element</a> is a
- <code><a href=#the-base-element>base</a></code> element with a <code title=attr-base-target><a href=#attr-base-target>target</a></code> attribute, then the browsing
- context that is navigated must be chosen by applying <a href=#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>the rules
- for choosing a browsing context given a browsing context
- name</a>, using the value of the <code title=attr-base-target><a href=#attr-base-target>target</a></code> attribute of the first such
+ <code><a href=#the-area-element>area</a></code> element with no <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code> attribute, but the
+ <code><a href=#document>Document</a></code> contains a <code><a href=#the-base-element>base</a></code> element with a
+ <code title=attr-base-target><a href=#attr-base-target>target</a></code> attribute, then the
+ browsing context that is navigated must be chosen by applying
+ <a href=#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>the rules for choosing a browsing context given a browsing
+ context name</a>, using the value of the <code title=attr-base-target><a href=#attr-base-target>target</a></code> attribute of the first such
<code><a href=#the-base-element>base</a></code> element as the browsing context name. If these
rules result in the creation of a new <a href=#browsing-context>browsing context</a>,
it must be navigated with <a href=#replacement-enabled>replacement enabled</a>.</p>
+ <!-- c.f. concept-fs-target -->
<p>Otherwise, the browsing context that must be navigated is the
same browsing context as the one which the element itself is in.</p>
View
@@ -5472,15 +5472,12 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
context</span>'s <span>browsing context container</span>'s
<code>Document</code> instead.</p></li>
- <li><p>If there is no <code>base</code> element that is both a
- child of <span>the <code>head</code> element</span> and has an
- <code title="attr-base-href">href</code> attribute, then the
+ <li><p>If there is no <code>base</code> element that has an <code
+ title="attr-base-href">href</code> attribute, then the
<span>document base URL</span> is <var title="">fallback base
- url</var>.</p></li>
-
- <li><p>Otherwise, let <var title="">url</var> be the value of the
- <code title="attr-base-href">href</code> attribute of the first
- such element.</p></li>
+ url</var>. Otherwise, let <var title="">url</var> be the value of
+ the <code title="attr-base-href">href</code> attribute of the
+ first such element.</p></li>
<li><p><span title="resolve a URL">Resolve</span> <var
title="">url</var> relative to <var title="">fallback base
@@ -52502,12 +52499,11 @@ out of 233&#x2009;257&#x2009;824 bytes available&lt;/meter>&lt;/p></pre>
element is a <span title="concept-submit-button">submit
button</span> and has such an attribute; or the value of its
<span>form owner</span>'s <code title="attr-fs-target">target</code>
- attribute, if <em>it</em> has such an attribute; or, if one of the
- child nodes of <span>the <code>head</code> element</span> is a
- <code>base</code> element with a <code
- title="attr-base-target">target</code> attribute, then the value of
- the <code title="attr-base-target">target</code> attribute of the
- first such <code>base</code> element; or, if there is no such
+ attribute, if <em>it</em> has such an attribute; or, if the
+ <code>Document</code> contains a <code>base</code> element with a
+ <code title="attr-base-target">target</code> attribute, then the
+ value of the <code title="attr-base-target">target</code> attribute
+ of the first such <code>base</code> element; or, if there is no such
element, the empty string.</p> <!-- c.f. hyperlink following -->
<hr>
@@ -56307,17 +56303,17 @@ local.onconnect = function (event) {
<p>Otherwise, if the element is an <code>a</code> or
<code>area</code> element with no <code
- title="attr-hyperlink-target">target</code> attribute, but one of
- the child nodes of <span>the <code>head</code> element</span> is a
- <code>base</code> element with a <code
- title="attr-base-target">target</code> attribute, then the browsing
- context that is navigated must be chosen by applying <span>the rules
- for choosing a browsing context given a browsing context
- name</span>, using the value of the <code
+ title="attr-hyperlink-target">target</code> attribute, but the
+ <code>Document</code> contains a <code>base</code> element with a
+ <code title="attr-base-target">target</code> attribute, then the
+ browsing context that is navigated must be chosen by applying
+ <span>the rules for choosing a browsing context given a browsing
+ context name</span>, using the value of the <code
title="attr-base-target">target</code> attribute of the first such
<code>base</code> element as the browsing context name. If these
rules result in the creation of a new <span>browsing context</span>,
it must be navigated with <span>replacement enabled</span>.</p>
+ <!-- c.f. concept-fs-target -->
<p>Otherwise, the browsing context that must be navigated is the
same browsing context as the one which the element itself is in.</p>

0 comments on commit 04934bd

Please sign in to comment.