Skip to content

Commit

Permalink
[e] (2) remove redundancy (<div> and <h1> are treated the same)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@1318 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 3, 2008
1 parent a344e9e commit 50126ec
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 55 deletions.
41 changes: 15 additions & 26 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -42025,8 +42025,8 @@ simplified explanation instead:
href="#fragment">fragment case</a>.</p>

<dt>A start tag whose tag name is one of: "address", "blockquote",
"center", "dir", "div", "dl", "fieldset", "listing", "menu", "ol", "p",
"ul"
"center", "dir", "div", "dl", "fieldset", "h1", "h2", "h3", "h4", "h5",
"h6", "listing", "menu", "ol", "p", "ul"

<dd>
<p class=big-issue>This doesn't match browsers.</p>
Expand All @@ -42037,7 +42037,19 @@ simplified explanation instead:
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>

<!-- (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" title="insert an html element">Insert an HTML
element</a> for the token.</p>

Expand Down Expand Up @@ -42268,29 +42280,6 @@ simplified explanation instead:
tag name of the token, then pop elements from this stack until an
element with that tag name has been popped from the stack.</p>

<dt>A start tag whose tag name is one of: "h1", "h2", "h3", "h4", "h5",
"h6"

<dd>
<p>If the <a href="#stack">stack of open elements</a> <a 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>
<!-- 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>

<dt>An end tag whose tag name is one of: "h1", "h2", "h3", "h4", "h5",
"h6"

Expand Down
45 changes: 16 additions & 29 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -39167,9 +39167,9 @@ simplified explanation instead:

</dd>

<dt>A start tag whose tag name is one of: "address",
"blockquote", "center", "dir", "div", "dl", "fieldset",
"listing", "menu", "ol", "p", "ul"</dt>
<dt>A start tag whose tag name is one of: "address", "blockquote",
"center", "dir", "div", "dl", "fieldset", "h1", "h2", "h3", "h4",
"h5", "h6", "listing", "menu", "ol", "p", "ul"</dt>
<dd>

<p class="big-issue">This doesn't match browsers.</p>
Expand All @@ -39181,6 +39181,19 @@ simplified explanation instead:
scope</span>, then act as if an end tag with the tag name
<code>p</code> 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><span title="insert an html element">Insert an HTML
element</span> for the token.</p>

Expand Down Expand Up @@ -39426,32 +39439,6 @@ simplified explanation instead:

</dd>

<dt>A start tag whose tag name is one of: "h1", "h2", "h3",
"h4", "h5", "h6"</dt>
<dd>

<p>If the <span>stack of open elements</span> <span title="has
an element in scope">has a <code>p</code> element in
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>

</dd>

<dt>An end tag whose tag name is one of: "h1", "h2", "h3",
"h4", "h5", "h6"</dt>
<dd>
Expand Down

0 comments on commit 50126ec

Please sign in to comment.