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

spec/Overview.html 1.1672 2501 <h1><h2> should close <h1> (but <h1><spa

From: poot <cvsmail@w3.org>
Date: Tue, 2 Dec 2008 11:33:14 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20081202023314.9B6E82BC0B@toro.w3.mag.keio.ac.jp>

<h1><h2> should close <h1> (but <h1><span><h2> should not) (whatwg
r2501)

8.2.5.10 The "in body" insertion mode
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1672.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.1671&r2=1.1672&f=h
http://html5.org/tools/web-apps-tracker?from=2500&to=2501

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1671
retrieving revision 1.1672
diff -u -d -r1.1671 -r1.1672
--- Overview.html	2 Dec 2008 02:00:20 -0000	1.1671
+++ Overview.html	2 Dec 2008 02:30:31 -0000	1.1672
@@ -39011,9 +39011,8 @@
    <!-- the normal ones -->
    <dt>A start tag whose tag name is one of: "address", "article",
    "aside", "blockquote", "center", "datagrid", "details", "dialog",
-   "dir", "div", "dl", "fieldset", "figure", "footer", "h1", "h2",
-   "h3", "h4", "h5", "h6", "header", "menu", "nav", "ol", "p",
-   "section", "ul"</dt>
+   "dir", "div", "dl", "fieldset", "figure", "footer", "header",
+   "menu", "nav", "ol", "p", "section", "ul"</dt>
    <dd>
 
     <!-- As of May 2008 this doesn't match any browser exactly, but is
@@ -39026,18 +39025,25 @@
     scope</a>, then act as if an end tag with the tag name
     "p" had been seen.</p>
 
-    <!-- (only applies to <h1>-<h6>)
-         Removed for compatibility with IE7, though all other
-         browsers do it this way. If you do put this back, make
-         sure to handle <h1><a><h2>, as in Webkit bug 12646.
-         http://bugs.webkit.org/show_bug.cgi?id=12646
-    <p>If the <span>stack of open elements</span> <span title="has
-    an element in scope">has in scope</span> an element whose tag
-    name is one of "h1", "h2", "h3", "h4", "h5", or "h6", then
-    this is a <span>parse error</span>; pop elements from the
-    stack until an element with one of those tag names has been
-    popped from the stack.</p>
-    -->
+    <p><a href=#insert-an-html-element>Insert an HTML element</a> for the token.</p>
+
+   </dd>
+
+   <!-- as normal, but close h1-h6 if it's the current node -->
+   <dt>A start tag whose tag name is one of: "h1", "h2", "h3", "h4",
+   "h5", "h6"</dt>
+   <dd>
+
+    <p>If the <a href=#stack-of-open-elements>stack of open elements</a> <a href=#has-an-element-in-scope title="has
+    an element in scope">has a <code>p</code> element in
+    scope</a>, then act as if an end tag with the tag name
+    "p" had been seen.</p>
+
+    <p>If the <a href=#current-node>current node</a> is an element whose tag name
+    is one of "h1", "h2", "h3", "h4", "h5", or "h6", then this is a
+    <a href=#parse-error>parse error</a>; pop the <a href=#current-node>current node</a> off
+    the <a href=#stack-of-open-elements>stack of open elements</a>.</p>
+    <!-- See https://bugs.webkit.org/show_bug.cgi?id=12646 -->
 
     <p><a href=#insert-an-html-element>Insert an HTML element</a> for the token.</p>
Received on Tuesday, 2 December 2008 02:33:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:13:57 GMT