Bug 17752 - Inspector's source view missing some words, doubles others in JS source in <script> tag
Summary: Inspector's source view missing some words, doubles others in JS source in <s...
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: Timothy Hatcher
URL: http://fanghorn.ws.utk.edu/evtcal/
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2008-03-10 14:55 PDT by Adam Roben (:aroben)
Modified: 2008-05-15 20:22 PDT (History)
2 users (show)

See Also:


Attachments
Proposed patch (7.98 KB, patch)
2008-05-15 18:48 PDT, Timothy Hatcher
sullivan: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2008-03-10 14:55:03 PDT
The Inspector's source view is missing some words and doubling others in some JS source inside <script> tags.

1. Go to http://fanghorn.ws.utk.edu/evtcal/
2. Right-click on the page and choose 'Inspect Element'
3. Go to the source view for the main document
4. Scroll down until you find a script tag

The source is completely screwed up. See the View Source window for the correct version of the source.

This seems to have gotten worse from Safari 3.0.4 to ToT.
Comment 1 Adam Roben (:aroben) 2008-03-10 14:55:28 PDT
<rdar://problem/5790805>
Comment 2 Timothy Hatcher 2008-03-10 14:59:04 PDT
The HTML view source mode is entering into the script body, the first time "<" is encountered it starts paring everything after that as HTML. In this case it is the following line:

	for (i=0;i<preloadimages.arguments.length;i++){ 

Comment 3 Timothy Hatcher 2008-05-15 18:48:17 PDT
Created attachment 21192 [details]
Proposed patch
Comment 4 Dave Hyatt 2008-05-15 19:55:15 PDT
Comment on attachment 21192 [details]
Proposed patch

r=me
Comment 5 Timothy Hatcher 2008-05-15 20:22:44 PDT
Landed in r33509.