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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 20 17:09:16 PDT 2012


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





--- Comment #2 from Pablo Flouret <pablof at motorola.com>  2012-06-20 17:09:15 PST ---
html spec says about disabled form controls and events:

"A form control that is disabled must prevent any click events that are queued on the user interaction task source from being dispatched on the element."

http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#attr-fe-disabled

The problem seems to be that the event's target is set to the button's child element, other browsers have the button as target.
Not sure what code is really to blame, hit testing?

As an aside, all browsers seem to be doing something different with regards to mouse events and disabled form controls, maybe that's why the spec only talks about the click events, where all browsers sort of agree.

I used something like this to play around, http://jsfiddle.net/EqfZ9/1/

-- 
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