NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 128 - Make the <title> tag simply get put into the current node like <meta> et al. This simplifies the generic (R)CDATA parsing algorithm a bit.
Make the <title> tag simply get put into the current node like <meta> et al. ...
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 15:56 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:00 CET
Index: source
===================================================================
--- source	(revision 1327)
+++ source	(revision 1328)
@@ -38061,16 +38061,14 @@
   <p>The <dfn>generic CDATA parsing algorithm</dfn> and the
   <dfn>generic RCDATA parsing algorithm</dfn> consist of the following
   steps. These algorithms are always invoked in response to a start
-  tag token, and are always passed a <var title="">context node</var>,
-  typically the <span>current node</span>, which is used as the place
-  to insert the resulting element node.</p>
+  tag token.</p>
 
   <ol>
 
    <li><p><span>Create an element for the token</span>.</p></li>
 
-   <li><p>Append the new element to the given <var title="">context
-   node</var>.</p></li>
+   <li><p>Append the new element to the <span>current
+   node</node>.</p></li>
 
    <li><p>If the algorithm that was invoked is the <span>generic CDATA
    parsing algorithm</span>, switch the tokeniser's <span>content
@@ -38092,8 +38090,8 @@
    switched back to the PCDATA state.</p></li>
 
    <li><p>If the next token is an end tag token with the same tag name
-   as the start tag token, ignore it. Otherwise, this is a <span>parse
-   error</span>.</p></li>
+   as the start tag token, ignore it. Otherwise, it's an end-of-file
+   token, and this is a <span>parse error</span>.</p></li>
 
   </ol>
 
@@ -38702,26 +38700,13 @@
 
    <dt>A start tag whose tag name is "title"</dt>
    <dd>
-
-    <p>Follow the <span>generic RCDATA parsing algorithm</span>,
-    with the <span><code>head</code> element pointer</span> as the
-    <var title="">context node</var>, unless that's null, in which
-    case use the <span>current node</span> (<span>fragment
-    case</span>).</p>
-
-    <p class="title">Setting the <var title="">context node</var> to
-    the <span><code>head</code> element pointer</span> causes the
-    element to be inserted in the <code>head</code> element instead of
-    whatever the <span>current node</span> is.</p>
-
+    <p>Follow the <span>generic RCDATA parsing algorithm</span>.</p>
    </dd>
 
    <dt>A start tag whose tag name is "noscript", if <span>scripting is enabled</span>:</dt>
    <dt>A start tag whose tag name is "style"</dt>
    <dd>
-    <p>Follow the <span>generic CDATA parsing algorithm</span>,
-    with the <span>current node</span> as the <var
-    title="">context node</var>.</p>
+    <p>Follow the <span>generic CDATA parsing algorithm</span>.</p>
    </dd>
 
    <dt>A start tag whose tag name is "noscript", if <span>scripting is disabled</span>:</dt>
@@ -39105,19 +39090,12 @@
    </dd>
 
    <dt>A start tag token whose tag name is one of: "base", "link",
-   "meta", "script", "style"</dt>
+   "meta", "script", "style", "title"</dt>
    <dd>
     <p>Process the token as if the <span>insertion mode</span> had
     been "<span title="insertion mode: in head">in head</span>".</p>
    </dd>
 
-   <dt>A start tag whose tag name is "title"</dt>
-   <dd>
-    <p><span>Parse error</span>. Process the token as if the
-    <span>insertion mode</span> had been "<span title="insertion
-    mode: in head">in head</span>".</p>
-   </dd>
-
    <dt>A start tag whose tag name is "body"</dt>
    <dd>
 
@@ -39804,9 +39782,7 @@
     <p><span>Reconstruct the active formatting elements</span>, if
     any.</p>
 
-    <p>Follow the <span>generic CDATA parsing algorithm</span>,
-    with the <span>current node</span> as the <var
-    title="">context node</var>.</p>
+    <p>Follow the <span>generic CDATA parsing algorithm</span>.</p>
 
    </dd>
 
@@ -39996,11 +39972,7 @@
    <dt>A start tag whose tag name is "noscript", if
    <span>scripting is enabled</span>:</dt>
    <dd>
-
-    <p>Follow the <span>generic CDATA parsing algorithm</span>,
-    with the <span>current node</span> as the <var
-    title="">context node</var>.</p>
-
+    <p>Follow the <span>generic CDATA parsing algorithm</span>.</p>
    </dd>
 
    <dt>A start tag whose tag name is "select"</dt>