NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 129 - 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.
Make 'the title element' refer to any title element, not restricted to <head>...
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 normal
Assigned To: Henri Sivonen
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-04 11:20 CET by Nobody
Modified: 2008-03-07 16:02 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nobody 2008-03-04 11:20:14 CET
Index: source
===================================================================
--- source	(revision 1329)
+++ source	(revision 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