[html5] r1328 - /

whatwg at whatwg.org whatwg at whatwg.org
Mon Mar 3 18:15:57 PST 2008


Author: ianh
Date: 2008-03-03 18:15:56 -0800 (Mon, 03 Mar 2008)
New Revision: 1328

Modified:
   index
   source
Log:
[act] (2) 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.

Modified: index
===================================================================
--- index	2008-03-04 02:07:44 UTC (rev 1327)
+++ index	2008-03-04 02:15:56 UTC (rev 1328)
@@ -40805,16 +40805,14 @@
   <p>The <dfn id=generic>generic CDATA parsing algorithm</dfn> and the <dfn
    id=generic0>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 <a href="#current4">current node</a>, which is used as the
-   place to insert the resulting element node.
+   start tag token.
 
   <ol>
    <li>
     <p><a href="#create">Create an element for the token</a>.
 
    <li>
-    <p>Append the new element to the given <var title="">context node</var>.
+    <p>Append the new element to the <a href="#current4">current node.</a>
 
    <li>
     <p>If the algorithm that was invoked is the <a href="#generic">generic
@@ -40840,8 +40838,8 @@
 
    <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 <a href="#parse0">parse
-     error</a>.
+     start tag token, ignore it. Otherwise, it's an end-of-file token, and
+     this is a <a href="#parse0">parse error</a>.
   </ol>
 
   <h5 id=closing><span class=secno>8.2.4.4. </span>Closing elements that have
@@ -41587,26 +41585,15 @@
    <dt>A start tag whose tag name is "title"
 
    <dd>
-    <p>Follow the <a href="#generic0">generic RCDATA parsing algorithm</a>,
-     with the <a href="#head-element"><code>head</code> element pointer</a>
-     as the <var title="">context node</var>, unless that's null, in which
-     case use the <a href="#current4">current node</a> (<a
-     href="#fragment">fragment case</a>).</p>
+    <p>Follow the <a href="#generic0">generic RCDATA parsing algorithm</a>.</p>
 
-    <p class=title>Setting the <var title="">context node</var> to the <a
-     href="#head-element"><code>head</code> element pointer</a> causes the
-     element to be inserted in the <code><a href="#head">head</a></code>
-     element instead of whatever the <a href="#current4">current node</a> is.</p>
-
    <dt>A start tag whose tag name is "noscript", if <a
     href="#scripting2">scripting is enabled</a>:
 
    <dt>A start tag whose tag name is "style"
 
    <dd>
-    <p>Follow the <a href="#generic">generic CDATA parsing algorithm</a>,
-     with the <a href="#current4">current node</a> as the <var
-     title="">context node</var>.</p>
+    <p>Follow the <a href="#generic">generic CDATA parsing algorithm</a>.</p>
 
    <dt>A start tag whose tag name is "noscript", if <a
     href="#scripting1">scripting is disabled</a>:
@@ -41964,20 +41951,13 @@
      attribute and its corresponding value to that element.</p>
 
    <dt>A start tag token whose tag name is one of: "base", "link", "meta",
-    "script", "style"
+    "script", "style", "title"
 
    <dd>
     <p>Process the token as if the <a href="#insertion0">insertion mode</a>
      had been "<a href="#in-head" title="insertion mode: in head">in
      head</a>".</p>
 
-   <dt>A start tag whose tag name is "title"
-
-   <dd>
-    <p><a href="#parse0">Parse error</a>. Process the token as if the <a
-     href="#insertion0">insertion mode</a> had been "<a href="#in-head"
-     title="insertion mode: in head">in head</a>".</p>
-
    <dt>A start tag whose tag name is "body"
 
    <dd>
@@ -42620,9 +42600,7 @@
     <p><a href="#reconstruct">Reconstruct the active formatting elements</a>,
      if any.</p>
 
-    <p>Follow the <a href="#generic">generic CDATA parsing algorithm</a>,
-     with the <a href="#current4">current node</a> as the <var
-     title="">context node</var>.</p>
+    <p>Follow the <a href="#generic">generic CDATA parsing algorithm</a>.</p>
 
    <dt>A start tag whose tag name is "table"
 
@@ -42795,9 +42773,7 @@
     href="#scripting2">scripting is enabled</a>:
 
    <dd>
-    <p>Follow the <a href="#generic">generic CDATA parsing algorithm</a>,
-     with the <a href="#current4">current node</a> as the <var
-     title="">context node</var>.</p>
+    <p>Follow the <a href="#generic">generic CDATA parsing algorithm</a>.</p>
 
    <dt>A start tag whose tag name is "select"
 

Modified: source
===================================================================
--- source	2008-03-04 02:07:44 UTC (rev 1327)
+++ source	2008-03-04 02:15:56 UTC (rev 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>




More information about the Commit-Watchers mailing list