HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/5711

File a bug

SVNBugCommentTime (UTC)
5711[Gecko] [Internet Explorer] [Opera] [Webkit] Make <base> take effect everywhere, not just as a child of <head>.2010-12-08 00:22
Index: source
===================================================================
--- source	(revision 5710)
+++ source	(revision 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>

|