[Webkit-unassigned] [Bug 17429] Inspector should show event listeners/handlers registered on each node
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 27 13:43:25 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=17429
--- Comment #18 from Joseph Pecoraro <joepeck at webkit.org> 2009-08-27 13:43:24 PDT ---
(In reply to comment #17)
> I am not sure this UI makes sense. I think it would make sense for event flow,
> but not unrelated listeners.
Yes, it would be for event flow for a particular event type. If its in the
Element Panel's sidebar I think there would be the new Pane titled "Event
Listeners". Inside that pane would be different sections for each event type
only _if_ that type is relevant for that node. For example two sections titled
"Click" and "Mouseover", which would expand and show my suggested UI showing
the flow of listeners for that event type.
Take the following example for instance:
function beta(e) { e.stopPropagation(); }
elem.addEventListener('click', alpha, false); // Fires 2nd
elem.addEventListener('click', beta, true); // Fires 1st
elem.onclick = gamma; // 3rd
All these listeners are related by the common "click" event type. Flow would
be: beta -> alpha -> gamma, and it would help developers to see that the flow
doesn't get past beta... meaning that listener must be stopping the event's
propagation.
--
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