Bug 25169 - Unclosed divs resulting in unintentionally nested tags
Summary: Unclosed divs resulting in unintentionally nested tags
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: http://aiuto.alice.it/includes/mail_s...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-13 17:16 PDT by Nate Chapin
Modified: 2010-10-20 14:09 PDT (History)
1 user (show)

See Also:


Attachments
Reduction - simplified somewhat (1.19 KB, text/html)
2009-04-13 17:19 PDT, Nate Chapin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Chapin 2009-04-13 17:16:38 PDT
The js on this page is generating malformed html, which is not handled by webkit as nicely as FF or IE.  In the js function createFaq(), they're opening a <div> and closing a </layer>.  The <div>s don't get closed until the wrapping <ol> gets closed.  The result is several nested <div>s, which then get overwritten when an faq is selected. 

Ideally, the <div>s without matching </div> would get closed before they ended up nesting (this appears to be how FF and IE are handling this page).

(See http://code.google.com/p/chromium/issues/detail?id=8687 for original report)
Comment 1 Nate Chapin 2009-04-13 17:19:57 PDT
Created attachment 29446 [details]
Reduction - simplified somewhat
Comment 2 Nate Chapin 2010-10-20 14:09:14 PDT
Fixed by the HTML5 parser.