HTML Standard Tracker

Filter

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
@@ -5465,29 +5465,26 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
      </li>
 
      <li><p>If the <code>Document</code> is <span>an
      <code>iframe</code> <code
      title="attr-iframe-srcdoc">srcdoc</code> document</span>, then
      let <var title="">fallback base url</var> be the <span>document
      base URL</span> of the <code>Document</code>'s <span>browsing
      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
      url</var> (thus, the <code>base</code> <code
      title="attr-base-href">href</code> attribute isn't affected by
      <code title="attr-xml-base">xml:base</code> attributes).</p></li>
 
      <li><p>The <span>document base URL</span> is the result of the
      previous step if it was successful; otherwise it is <var
      title="">fallback base url</var>.</p></li>
@@ -52495,26 +52492,25 @@ out of 233&#x2009;257&#x2009;824 bytes available&lt;/meter>&lt;/p></pre>
   content attributes, if specified, must have values that are <span
   title="valid browsing context name or keyword">valid browsing
   context names or keywords</span>.</p>
 
   <p>The <dfn title="concept-fs-target">target</dfn> of an element is
   the value of the element's <code
   title="attr-fs-formtarget">formtarget</code> attribute, if the
   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>
 
   <p>The <dfn title="attr-fs-novalidate"><code>novalidate</code></dfn>
   and <dfn
   title="attr-fs-formnovalidate"><code>formnovalidate</code></dfn>
   content attributes are <span title="boolean attribute">boolean
   attributes</span>. If present, they indicate that the form is not to
   be validated during submission.</p>
@@ -56300,31 +56296,31 @@ local.onconnect = function (event) {
   <span>replacement enabled</span>.</p>
 
   <p>Otherwise, if the hyperlink is a <span
   title="rel-sidebar-hyperlink">sidebar hyperlink</span> and the user
   agent implements a feature that can be considered a secondary
   browsing context, such a secondary browsing context may be selected
   as the browsing context to be navigated.</p>
 
   <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>
 
   <p>The navigation must be done with the <span>browsing
   context</span> that contains the <code>Document</code> object with
   which the element in question is associated as the <span>source
   browsing context</span>.</p>
 
   </div>

|