- From: poot <cvsmail@w3.org>
- Date: Thu, 15 Jul 2010 04:16:20 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: Change the 'end tag' processing to not imply its own end tag, since that makes no sense. (Only affects parsing of rp and rt elements.) Also clean up the way categories are references to avoid too many negatives, and put option and optgroup in the 'special' category (should have no effect in practice). And make a loop use a label rather than jumping to a numbered step. (whatwg r5162) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4117&r2=1.4118&f=h http://html5.org/tools/web-apps-tracker?from=5161&to=5162 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.4117 retrieving revision 1.4118 diff -u -d -r1.4117 -r1.4118 --- Overview.html 14 Jul 2010 19:04:55 -0000 1.4117 +++ Overview.html 14 Jul 2010 19:14:46 -0000 1.4118 @@ -53013,14 +53013,14 @@ <code><a href="#the-marquee-element">marquee</a></code>, <code><a href="#menus">menu</a></code>, <code><a href="#meta">meta</a></code>, <code><a href="#the-nav-element">nav</a></code>, <code><a href="#noembed">noembed</a></code>, <code><a href="#noframes">noframes</a></code>, <code><a href="#the-noscript-element">noscript</a></code>, <code><a href="#the-object-element">object</a></code>, <code><a href="#the-ol-element">ol</a></code>, - <code><a href="#the-p-element">p</a></code>, <code><a href="#the-param-element">param</a></code>, <code><a href="#plaintext">plaintext</a></code>, - <code><a href="#the-pre-element">pre</a></code>, <code><a href="#script">script</a></code>, <code><a href="#the-section-element">section</a></code>, - <code><a href="#the-select-element">select</a></code>, <code><a href="#the-style-element">style</a></code>, <code><a href="#the-table-element">table</a></code>, - <code><a href="#the-tbody-element">tbody</a></code>, <code><a href="#the-td-element">td</a></code>, <code><a href="#the-textarea-element">textarea</a></code>, - <code><a href="#the-tfoot-element">tfoot</a></code>, <code><a href="#the-th-element">th</a></code>, <code><a href="#the-thead-element">thead</a></code>, - <code><a href="#the-title-element-0">title</a></code>, <code><a href="#the-tr-element">tr</a></code>, <code><a href="#the-ul-element">ul</a></code>, - <code><a href="#the-wbr-element">wbr</a></code>, <code><a href="#xmp">xmp</a></code>, and SVG's - <code>foreignObject</code>.</dd> + <code><a href="#the-optgroup-element">optgroup</a></code>, <code><a href="#the-option-element">option</a></code>, <code><a href="#the-p-element">p</a></code>, + <code><a href="#the-param-element">param</a></code>, <code><a href="#plaintext">plaintext</a></code>, <code><a href="#the-pre-element">pre</a></code>, + <code><a href="#script">script</a></code>, <code><a href="#the-section-element">section</a></code>, <code><a href="#the-select-element">select</a></code>, + <code><a href="#the-style-element">style</a></code>, <code><a href="#the-table-element">table</a></code>, <code><a href="#the-tbody-element">tbody</a></code>, + <code><a href="#the-td-element">td</a></code>, <code><a href="#the-textarea-element">textarea</a></code>, <code><a href="#the-tfoot-element">tfoot</a></code>, + <code><a href="#the-th-element">th</a></code>, <code><a href="#the-thead-element">thead</a></code>, <code><a href="#the-title-element-0">title</a></code>, + <code><a href="#the-tr-element">tr</a></code>, <code><a href="#the-ul-element">ul</a></code>, <code><a href="#the-wbr-element">wbr</a></code>, + <code><a href="#xmp">xmp</a></code>, and SVG's <code>foreignObject</code>.</dd> <dt><dfn id="formatting">Formatting</dfn></dt> <dd><p>The following HTML elements are those that end up in the @@ -56560,12 +56560,10 @@ <code><a href="#the-li-element">li</a></code> element, then act as if an end tag with the tag name "li" had been seen, then jump to the last step.</li> - <li><p>If <var title="">node</var> is not in the - <a href="#formatting">formatting</a> category, and is not in the - <a href="#ordinary">ordinary</a> category, and is not an - <code><a href="#the-address-element">address</a></code>, <code><a href="#the-div-element">div</a></code>, or <code><a href="#the-p-element">p</a></code> - element, then jump to the last step.</li> <!-- an element - <foo> is in this list if the following markup: + <li><p>If <var title="">node</var> is in the <a href="#special">special</a> + category, but is not an <code><a href="#the-address-element">address</a></code>, <code><a href="#the-div-element">div</a></code>, + or <code><a href="#the-p-element">p</a></code> element, then jump to the last step.</li> + <!-- an element <foo> is in this list if the following markup: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><body><ol><li><foo><li> @@ -56609,12 +56607,10 @@ tag with the same tag name as <var title="">node</var> had been seen, then jump to the last step.</li> - <li><p>If <var title="">node</var> is not in the - <a href="#formatting">formatting</a> category, and is not in the - <a href="#ordinary">ordinary</a> category, and is not an - <code><a href="#the-address-element">address</a></code>, <code><a href="#the-div-element">div</a></code>, or <code><a href="#the-p-element">p</a></code> - element, then jump to the last step.</li> <!-- an element - <foo> is in this list if the following markup: + <li><p>If <var title="">node</var> is in the <a href="#special">special</a> + category, but is not an <code><a href="#the-address-element">address</a></code>, <code><a href="#the-div-element">div</a></code>, + or <code><a href="#the-p-element">p</a></code> element, then jump to the last step.</li> + <!-- an element <foo> is in this list if the following markup: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><body><dl><dt><foo><dt> @@ -56951,12 +56947,11 @@ </li> - <li><p>Let the <var title="">furthest block</var> be the - topmost node in the <a href="#stack-of-open-elements">stack of open elements</a> that - is lower in the stack than the <var title="">formatting - element</var>, and is not an element in the - <a href="#ordinary">ordinary</a> or <a href="#formatting">formatting</a> - categories. There might not be one.</li> + <li><p>Let the <var title="">furthest block</var> be the topmost + node in the <a href="#stack-of-open-elements">stack of open elements</a> that is lower in + the stack than the <var title="">formatting element</var>, and is + an element in the <a href="#special">special</a> category. There might not + be one.</li> <li><p>If there is no <var title="">furthest block</var>, then the UA must skip the subsequent steps and instead just @@ -57493,10 +57488,11 @@ <ol><li><p>Initialize <var title="">node</var> to be the <a href="#current-node">current node</a> (the bottommost node of the stack).</li> - <li><p>If <var title="">node</var> has the same tag name as - the token, then:</p> + <li><p><i>Loop</i>: If <var title="">node</var> has the same tag + name as the token, then:</p> - <ol><li><p><a href="#generate-implied-end-tags">Generate implied end tags</a>.</li> + <ol><li><p><a href="#generate-implied-end-tags">Generate implied end tags</a>, except + for elements with the same tag name as the token.</li> <li><p>If the tag name of the end tag token does not match the tag name of the <a href="#current-node">current node</a>, this is a @@ -57507,15 +57503,14 @@ </ol></li> - <li><p>Otherwise, if <var title="">node</var> is in neither the - <a href="#formatting">formatting</a> category nor the <a href="#ordinary">ordinary</a> - category, then this is a <a href="#parse-error">parse error</a>; ignore the - token, and abort these steps.</li> + <li><p>Otherwise, if <var title="">node</var> is in the + <a href="#special">special</a> category, then this is a <a href="#parse-error">parse + error</a>; ignore the token, and abort these steps.</li> <li><p>Set <var title="">node</var> to the previous entry in the <a href="#stack-of-open-elements">stack of open elements</a>.</li> - <li><p>Return to step 2.</li> + <li><p>Return to the step labeld <i>loop</i>.</li> </ol></dd>
Received on Wednesday, 14 July 2010 19:15:27 UTC