Bug 54411

Summary: Disabled button with span still clickable
Product: WebKit Reporter: tekkub <tekkub>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: eae, paroga
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: OS X 10.6   
URL: http://tekkub.net/chrome-does-not-disable
Attachments:
Description Flags
Test case none

tekkub
Reported 2011-02-14 13:54:02 PST
If you have a button that contains a span, and has been disabled, clicking on the span will still trigger a click event. You can see a working example here: http://tekkub.net/chrome-does-not-disable I've confirmed this behaviour in Chrome 9.0.597.102, Chrome 10.0.648.45, Safari 5.0.3, and Android 2.2.2.
Attachments
Test case (672 bytes, text/html)
2011-03-15 13:38 PDT, Emil A Eklund
no flags
Patrick R. Gansterer
Comment 1 2011-02-19 08:23:44 PST
Reproduced with r79118. Mozilla and Opera show the expected behavior.
Emil A Eklund
Comment 2 2011-03-15 13:38:45 PDT
Created attachment 85854 [details] Test case I cannot reproduce this using a normal javascript listener which seems to suggest that it's a problem with how jquerys live listeners work rather than with the webkit event dispatching code for buttons. Please see attached test.
Note You need to log in before you can comment on or make changes to this bug.