W3C home > Mailing lists > Public > public-html-commits@w3.org > December 2008

html5/spec Overview.html,1.1675,1.1676

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 02 Dec 2008 03:04:48 +0000
To: public-html-commits@w3.org
Message-Id: <E1L7LZA-0001L0-AG@lionel-hutz.w3.org>

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv5120

Modified Files:
	Overview.html 
Log Message:
Fix </form> handling for the case where the tag isn't matched. (credit: tt) (whatwg r2505)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1675
retrieving revision 1.1676
diff -u -d -r1.1675 -r1.1676
--- Overview.html	2 Dec 2008 02:54:07 -0000	1.1675
+++ Overview.html	2 Dec 2008 03:04:45 -0000	1.1676
@@ -39230,24 +39230,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>
 
Received on Tuesday, 2 December 2008 03:04:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 December 2008 03:04:57 GMT