RESOLVED FIXED 24338
Close tags for li, dd, dt do not close previous unclosed tags
https://bugs.webkit.org/show_bug.cgi?id=24338
Summary Close tags for li, dd, dt do not close previous unclosed tags
James Robinson
Reported 2009-03-03 16:56:50 PST
According to the rules for an end tag of "dd", "dt" or "li" at: http://dev.w3.org/html5/spec/Overview.html#parsing-main-inbody implicit end tags should be generated for previously unclosed tags until the matching "dd"/"dt"/"li" is found. In the case where there's a structure like: <XX> <div> </XX> <XX> <div> </XX> where XX is one of these tags WebKit nests the second XX and its children inside the first <div>. It should close out the first <div> at the first </XX> tag.
Attachments
Testcase for <dd> <dt> and <li> (285 bytes, text/html)
2009-03-03 16:58 PST, James Robinson
no flags
James Robinson
Comment 1 2009-03-03 16:58:54 PST
Created attachment 28246 [details] Testcase for <dd> <dt> and <li> The DOM structure is wrong for all three pairs of tags. The rendering for <dt> looks valid, but the rendering for <dd> has incorrect indentation and the rendering for <li>s has overlapping numbers. FF3 has the correct DOM structure in all three cases and renders the <dd>s correctly but makes the same rendering mistake on <li>s.
Emilio López
Comment 2 2009-03-08 16:36:40 PDT
Here is a real-life example of this bug. http://lineupblog.com/webkitbug.html Firefox closes the div correctly and doesn't trigger the bug.
Adam Barth
Comment 3 2010-09-21 04:02:10 PDT
This bug is fixed by the HTML5 parser.
Note You need to log in before you can comment on or make changes to this bug.