Bug 37348

Summary: Certain HTML structure causes parse error in Chrome and Safari
Product: WebKit Reporter: Robert Schultz <robert>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: ap, jchaffraix, robert
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.6   
Attachments:
Description Flags
HTML that causes a parse error none

Description Robert Schultz 2010-04-09 12:03:23 PDT
Created attachment 52973 [details]
HTML that causes a parse error

This only happens in Chrome and Safari.

Firefox loads it just fine.

See the attached test case HTML file.

Attempting to load it in Chrome or Safari causes a parse error.

If you remove the conditional comment block, OR the empty script block below the conditional comment, the page parses correctly.
Comment 1 Alexey Proskuryakov 2010-04-09 16:34:15 PDT
Firefox 3.6.3 parses this file exactly like Safari does, and also logs an error to console.

The problem with this test is that "--\\\>" doesn't (and shouldn't) close a comment.