[html5] r2505 - [e] (0) Fix </form> handling for the case where the tag isn't matched. (credit: tt)

whatwg at whatwg.org whatwg at whatwg.org
Mon Dec 1 19:04:41 PST 2008


Author: ianh
Date: 2008-12-01 19:04:41 -0800 (Mon, 01 Dec 2008)
New Revision: 2505

Modified:
   index
   source
Log:
[e] (0) Fix </form> handling for the case where the tag isn't matched. (credit: tt)

Modified: index
===================================================================
--- index	2008-12-02 02:54:03 UTC (rev 2504)
+++ index	2008-12-02 03:04:41 UTC (rev 2505)
@@ -48664,24 +48664,27 @@
    <dt>An end tag whose tag name is "form"</dt>
    <dd>
 
+    <p>Let <var title="">node</var> be the element that the
+    <a href=#form-element-pointer><code title="">form</code> element pointer</a> is set
+    to.</p>
+
     <p>Set the <a href=#form-element-pointer><code title="">form</code> element pointer</a>
     to null.</p>
 
-    <p>If the <a href=#stack-of-open-elements>stack of open elements</a> does not <a href=#has-an-element-in-scope title="has an element in scope">have an element in scope</a>
-    with the same tag name as that of the token, then this is a
-    <a href=#parse-error>parse error</a>; ignore the token.</p>
+    <p>If <var title="">node</var> is null or the <a href=#stack-of-open-elements>stack of open
+    elements</a> does not <a href=#has-an-element-in-scope title="has an element in
+    scope">have <var title="">node</var> in scope</a>, then this is
+    a <a href=#parse-error>parse error</a>; ignore the token.</p>
 
     <p>Otherwise, run these steps:</p>
 
     <ol><li><p><a href=#generate-implied-end-tags>Generate implied end tags</a>.</li>
 
-     <li><p>If the <a href=#current-node>current node</a> is not an element with
-     the same tag name as that of the token, then this is a
-     <a href=#parse-error>parse error</a>.</li>
+     <li><p>If the <a href=#current-node>current node</a> is not <var title="">node</var>, then this is a <a href=#parse-error>parse
+     error</a>.</li>
 
-     <li><p>Pop elements from the <a href=#stack-of-open-elements>stack of open elements</a>
-     until an element with the same tag name as the token has been
-     popped from the stack.</li>
+     <li><p>Remove <var title="">node</var> from the <a href=#stack-of-open-elements>stack of
+     open elements</a>.</li>
 
     </ol></dd>
 

Modified: source
===================================================================
--- source	2008-12-02 02:54:03 UTC (rev 2504)
+++ source	2008-12-02 03:04:41 UTC (rev 2505)
@@ -55473,13 +55473,17 @@
    <dt>An end tag whose tag name is "form"</dt>
    <dd>
 
+    <p>Let <var title="">node</var> be the element that the
+    <span><code title="">form</code> element pointer</span> is set
+    to.</p>
+
     <p>Set the <span><code title="">form</code> element pointer</span>
     to null.</p>
 
-    <p>If the <span>stack of open elements</span> does not <span
-    title="has an element in scope">have an element in scope</span>
-    with the same tag name as that of the token, then this is a
-    <span>parse error</span>; ignore the token.</p>
+    <p>If <var title="">node</var> is null or the <span>stack of open
+    elements</span> does not <span title="has an element in
+    scope">have <var title="">node</var> in scope</span>, then this is
+    a <span>parse error</span>; ignore the token.</p>
 
     <p>Otherwise, run these steps:</p>
 
@@ -55487,13 +55491,12 @@
 
      <li><p><span>Generate implied end tags</span>.</p></li>
 
-     <li><p>If the <span>current node</span> is not an element with
-     the same tag name as that of the token, then this is a
-     <span>parse error</span>.</p></li>
+     <li><p>If the <span>current node</span> is not <var
+     title="">node</var>, then this is a <span>parse
+     error</span>.</p></li>
 
-     <li><p>Pop elements from the <span>stack of open elements</span>
-     until an element with the same tag name as the token has been
-     popped from the stack.</p></li>
+     <li><p>Remove <var title="">node</var> from the <span>stack of
+     open elements</span>.</p></li>
 
     </ol>
 




More information about the Commit-Watchers mailing list