- From: poot <cvsmail@w3.org>
- Date: Tue, 2 Dec 2008 12:07:25 +0900 (JST)
- To: public-html-diffs@w3.org
Fix </form> handling for the case where the tag isn't matched. (credit: tt) (whatwg r2505) 8.2.5.10 The "in body" insertion mode http://people.w3.org/mike/diffs/html5/spec/Overview.1.1676.html#parsing-main-inbody http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1675&r2=1.1676&f=h http://html5.org/tools/web-apps-tracker?from=2504&to=2505 =================================================================== 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:08:01 UTC