Browse files

[cgowt] (2) Made <h1> headers nest. PLEASE GIVE ME FEEDBACK ON THIS C…

…HANGE.

git-svn-id: http://svn.whatwg.org/webapps@926 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 71f8237 commit cfad1bfd28bb3b35206090b919c83c6f7e85111e @Hixie Hixie committed Jun 19, 2007
Showing with 17 additions and 8 deletions.
  1. +12 −8 index
  2. +5 −0 source
View
20 index
@@ -36972,14 +36972,18 @@ simplified explanation instead:
href="#have-an" 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
<code><a href="#p">p</a></code> had been seen.</p>
-
- <p>If the <a href="#stack">stack of open elements</a> <a
- href="#have-an" title="has an element in scope">has in scope</a> an
- element whose tag name is one of "h1", "h2", "h3", "h4", "h5", or
- "h6", then this is a <a href="#parse">parse error</a>; pop elements
- from the stack until an element with one of those tag names has been
- popped from the stack.</p>
-
+ <!-- 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" title="insert an html element">Insert an HTML
element</a> for the token.</p>
View
5 source
@@ -34225,12 +34225,17 @@ simplified explanation instead:
scope</span>, then act as if an end tag with the tag name
<code>p</code> had been seen.</p>
+ <!-- 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><span title="insert an html element">Insert an HTML
element</span> for the token.</p>

0 comments on commit cfad1bf

Please sign in to comment.