[html5] r1330 - /

whatwg at whatwg.org whatwg at whatwg.org
Mon Mar 3 18:34:05 PST 2008


Author: ianh
Date: 2008-03-03 18:34:04 -0800 (Mon, 03 Mar 2008)
New Revision: 1330

Modified:
   index
   source
Log:
[act] (2) Make 'the title element' refer to any title element, not restricted to <head>, since we no longer hoist it up. Also, make <listing> parse like <pre> for compatibility with browsers.

Modified: index
===================================================================
--- index	2008-03-04 02:26:33 UTC (rev 1329)
+++ index	2008-03-04 02:34:04 UTC (rev 1330)
@@ -3460,9 +3460,8 @@
    or null otherwise.
 
   <p><dfn id=the-title1>The <code>title</code> element</dfn> of a document is
-   the first <code><a href="#title1">title</a></code> element that is a child
-   of <a href="#the-head0">the <code>head</code> element</a>, if there is
-   one, or null otherwise.
+   the first <code><a href="#title1">title</a></code> element in the document
+   (in tree order), if there is one, or null otherwise.
 
   <p>The <dfn id=document.title
    title=dom-document-title><code>title</code></dfn> attribute must, on
@@ -3494,8 +3493,9 @@
      to the setter for the DOM attribute of the same name on the
      <code>SVGDocument</code> interface. Stop the algorithm here.
 
-   <li>If <a href="#the-head0">the <code>head</code> element</a> is null,
-    then the attribute must do nothing. Stop the algorithm here.
+   <li>If <a href="#the-title1">the <code>title</code> element</a> is null
+    and <a href="#the-head0">the <code>head</code> element</a> is null, then
+    the attribute must do nothing. Stop the algorithm here.
 
    <li>If <a href="#the-title1">the <code>title</code> element</a> is null,
     then a new <code><a href="#title1">title</a></code> element must be
@@ -42010,7 +42010,7 @@
 
    <dt>A start tag whose tag name is one of: "address", "blockquote",
     "center", "dir", "div", "dl", "fieldset", "h1", "h2", "h3", "h4", "h5",
-    "h6", "listing", "menu", "ol", "p", "ul"
+    "h6", "menu", "ol", "p", "ul"
 
    <dd>
     <p class=big-issue>This doesn't match browsers.</p>
@@ -42037,7 +42037,7 @@
     <p><a href="#insert" title="insert an html element">Insert an HTML
      element</a> for the token.</p>
 
-   <dt>A start tag whose tag name is "pre"
+   <dt>A start tag whose tag name is one of: "pre", "listing"
 
    <dd>
     <p>If the <a href="#stack">stack of open elements</a> <a href="#have-an"

Modified: source
===================================================================
--- source	2008-03-04 02:26:33 UTC (rev 1329)
+++ source	2008-03-04 02:34:04 UTC (rev 1330)
@@ -1855,9 +1855,8 @@
 
 
   <p><dfn>The <code>title</code> element</dfn> of a document is the
-  first <code>title</code> element that is a child of <span>the
-  <code>head</code> element</span>, if there is one, or null
-  otherwise.</p>
+  first <code>title</code> element in the document (in tree order), if
+  there is one, or null otherwise.</p>
 
   <p>The <dfn id="document.title"
   title="dom-document-title"><code>title</code></dfn> attribute must,
@@ -1891,7 +1890,8 @@
    <code>SVGDocument</code> interface. Stop the algorithm
    here.</p></li>
 
-   <li>If <span>the <code>head</code> element</span> is null, then the
+   <li>If <span>the <code>title</code> element</span> is null and
+   <span>the <code>head</code> element</span> is null, then the
    attribute must do nothing. Stop the algorithm here.</li>
 
    <li>If <span>the <code>title</code> element</span> is null, then a
@@ -39151,7 +39151,7 @@
 
    <dt>A start tag whose tag name is one of: "address", "blockquote",
    "center", "dir", "div", "dl", "fieldset", "h1", "h2", "h3", "h4",
-   "h5", "h6", "listing", "menu", "ol", "p", "ul"</dt>
+   "h5", "h6", "menu", "ol", "p", "ul"</dt>
    <dd>
 
     <p class="big-issue">This doesn't match browsers.</p>
@@ -39181,7 +39181,7 @@
 
    </dd>
 
-   <dt>A start tag whose tag name is "pre"</dt>
+   <dt>A start tag whose tag name is one of: "pre", "listing"</dt>
    <dd>
 
     <p>If the <span>stack of open elements</span> <span title="has




More information about the Commit-Watchers mailing list