[Webkit-unassigned] [Bug 24291] New: Single line JavaScript comment prevents HTML button click handler execution
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Mar 2 07:44:05 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=24291
Summary: Single line JavaScript comment prevents HTML button
click handler execution
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebCore JavaScript
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: mihnea at adobe.com
Hello,
If i add a single line JavaScript comment at the end of a HTML button handler
for click, the handler is not executed.
I was able to reproduce the problem using the following sample:
<HTML>
<BODY>
<input type="button" id="myButtonTest" value="Works" onClick="alert('OnClick
Button1');" />
<input type="button" id="myButtonTest1" value="Doesn'tWork"
onClick="alert('OnClick Button2');//;" />
</BODY>
</HTML>
While clicking on button "Works" displays the alert, clicking on the button
"Doesn'tWork" does not bring up the alert message. Removing the //; comment or
replacing it with /**/ solves the problem.
I was able to reproduce the problem using:
-> WebKit 41357 running on Mac Leopard
-> Safari 4 both on Mac Leopard/Win
-> Google Chrome on Win
FF3/Opera 9.63 do not have the problem in both Mac/Win environments.
Regards,
Mihnea
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list