Bug 34934 - Web Inspector: incorrect syntax highlighting as HTML in a script tag
Summary: Web Inspector: incorrect syntax highlighting as HTML in a script tag
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://daringfireball.net
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-15 01:41 PST by Timothy Hatcher
Modified: 2010-02-15 12:13 PST (History)
7 users (show)

See Also:


Attachments
Bug (177.47 KB, image/png)
2010-02-15 01:41 PST, Timothy Hatcher
no flags Details
[PATCH] Proposed fix. (6.48 KB, patch)
2010-02-15 08:56 PST, Pavel Feldman
timothy: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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