[Webkit-unassigned] [Bug 89041] New: Click events from child element of disabled <button> incorrectly bubble

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 13 15:10:38 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=89041

           Summary: Click events from child element of disabled <button>
                    incorrectly bubble
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
               URL: http://jsfiddle.net/sjRtk/3/
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Event Handling
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jmvanhorn at gmail.com


If a disabled <button> element contains a child element, then clicking on the child causes a click event to bubble up to the button's containing element.

Example:

<div id="btn-container">
    <button disabled>
        <i class="icon">XX</i>
        disabled-icon
    </button>
</div>

If an event listener is added to #btn-container for 'click' events, then clicking on the <i> element ("XX", contained in disabled button) causes the handler to be invoked. Clicking on the button's other content ("disabled-icon" text) does not invoke the handler.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list