[Webkit-unassigned] [Bug 15136] HTML5 spec violation: </h1> doesn't end <h3> element in Webkit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 27 06:25:03 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=15136


webkit at blaut.biz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Incorrect error handling in |HTML5 spec violation: </h1>
                   |Safari 3 results broken     |doesn't end <h3> element in
                   |layout on http://skapiec.pl |Webkit




------- Comment #7 from webkit at blaut.biz  2008-02-27 06:25 PDT -------
HTML5 says: "An end tag whose tag name is one of: "h1", "h2", "h3", "h4", "h5",
"h6"
If the stack of open elements has in scope an element whose tag name is one of
"h1", "h2", "h3", "h4", "h5", or "h6", then generate implied end tags.

Now, if the current node is not an element with the same tag name as that of
the token, then this is a parse error.

If the stack of open elements has in scope an element whose tag name is one of
"h1", "h2", "h3", "h4", "h5", or "h6", then pop elements from the stack until
an element with one of those tag names has been popped from the stack."

So any of the </h1 > - </h6> tags should close mismatched <h1> - <h6> tags. All
of tested engines Trident (IE6), Gecko and Presto do it. HTML5lib also properly
closes the tag:


<h3 id=test1>
</h3>

<div id=test2>
</div>

<p>
There should be two boxes on the page

- green and blue. The text should be placed between these two boxes.
</p>


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list