Bug 36812 - Profiler does not show the correct javascript line after <pre> element
Summary: Profiler does not show the correct javascript line after <pre> element
Status: RESOLVED DUPLICATE of bug 21140
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-30 02:02 PDT by Mihnea Ovidenie
Modified: 2014-12-16 00:25 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mihnea Ovidenie 2010-03-30 02:02:39 PDT
Hello,

I am trying to profile the following HTML code snippet in WebKit:

<html>
    <body>
    	<pre>
    	Test
    	</pre>
	<input type="button" value="Click" onclick="alert('1');" />
    </body>
</html>

After loading the code, i start profiler, click button, dismiss alert and stop profiler.
*onclick* function is reported on line 5, but line 5 is </pre> element.

If i move the ending pre tag on the same line as Test, profiler does show the right line for *onclick* function.
I've tested on both Win/Mac with Safari 4.0.5, latest WebKit and Chrome and all exhibit the same issue.

Regards,
Mihnea Ovidenie
Comment 1 Brian Burg 2014-12-16 00:25:34 PST

*** This bug has been marked as a duplicate of bug 21140 ***