[html5] r5711 - [giow] (2) Make <base> take effect everywhere, not just as a child of <head>.
whatwg at whatwg.org
whatwg at whatwg.org
Tue Dec 7 16:22:03 PST 2010
Author: ianh
Date: 2010-12-07 16:22:01 -0800 (Tue, 07 Dec 2010)
New Revision: 5711
Modified:
complete.html
index
source
Log:
[giow] (2) Make <base> take effect everywhere, not just as a child of <head>.
Modified: complete.html
===================================================================
--- complete.html 2010-12-07 23:48:50 UTC (rev 5710)
+++ complete.html 2010-12-08 00:22:01 UTC (rev 5711)
@@ -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 — 7 December 2010</h2>
+ <h2 class="no-num no-toc">Draft Standard — 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,16 +5930,12 @@
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>
+ 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>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
<code title=attr-xml-base><a href=#the-xml:base-attribute-(xml-only)>xml:base</a></code> attributes).</li>
@@ -46777,11 +46773,11 @@
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 @@
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>
Modified: index
===================================================================
--- index 2010-12-07 23:48:50 UTC (rev 5710)
+++ index 2010-12-08 00:22:01 UTC (rev 5711)
@@ -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 — 7 December 2010</h2>
+ <h2 class="no-num no-toc">Draft Standard — 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,16 +5908,12 @@
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>
+ 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>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
<code title=attr-xml-base><a href=#the-xml:base-attribute-(xml-only)>xml:base</a></code> attributes).</li>
@@ -46758,11 +46754,11 @@
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 @@
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>
Modified: source
===================================================================
--- source 2010-12-07 23:48:50 UTC (rev 5710)
+++ source 2010-12-08 00:22:01 UTC (rev 5711)
@@ -5472,16 +5472,13 @@
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>
+ 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>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
url</var> (thus, the <code>base</code> <code
@@ -52502,12 +52499,11 @@
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 @@
<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>
More information about the Commit-Watchers
mailing list