Bug 25169

Summary: Unclosed divs resulting in unintentionally nested tags
Product: WebKit Reporter: Nate Chapin <japhet>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: japhet
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
URL: http://aiuto.alice.it/includes/mail_servizi/index.html
Attachments:
Description Flags
Reduction - simplified somewhat none

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.