Bug 34934

Summary: Web Inspector: incorrect syntax highlighting as HTML in a script tag
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bweinstein, joepeck, keishi, pfeldman, pmuellr, rik, timothy
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://daringfireball.net
Attachments:
Description Flags
Bug
none
[PATCH] Proposed fix. timothy: review+

Description Timothy Hatcher 2010-02-15 01:41:33 PST
Created attachment 48742 [details]
Bug

On Daring Fireball there is a script tag that has a string with HTML inside. This should be shown as a normal string, but it starts to parse as HTML again. The link highlighter is confused too.

See screenshot.
Comment 1 Pavel Feldman 2010-02-15 08:56:33 PST
Created attachment 48757 [details]
[PATCH] Proposed fix.
Comment 2 Pavel Feldman 2010-02-15 12:13:05 PST
Committing to http://svn.webkit.org/repository/webkit/trunk ...
    M    LayoutTests/ChangeLog
    A    LayoutTests/inspector/syntax-highlight-html-expected.txt
    A    LayoutTests/inspector/syntax-highlight-html.html
    M    WebCore/ChangeLog
    M    WebCore/inspector/front-end/SourceHTMLTokenizer.js
    M    WebCore/inspector/front-end/SourceHTMLTokenizer.re2js
Committed r54780