[Webkit-unassigned] [Bug 112214] [Shadow Dom]: Non Bubbling events in ShadowDOM dispatch in an incorrect order

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 13 15:32:55 PDT 2013


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


Daniel Freedman <dfreedm at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[Shadow Dom]: Non Bubbling  |[Shadow Dom]: Non Bubbling
                   |events in ShadowDOM do not  |events in ShadowDOM
                   |honor stopPropgation        |dispatch in an incorrect
                   |                            |order
                URL|http://jsfiddle.net/dfreedm |http://jsfiddle.net/dfreedm
                   |/3SAxy/                     |/EMgtb/




--- Comment #1 from Daniel Freedman <dfreedm at chromium.org>  2013-03-13 15:35:21 PST ---
After more review, it turns out I was mistaken about stopPropagation. Instead, for non-bubbling events, the listeners for an event at AT_TARGET phase are fired in capture order (top down, DOM order).

Given a DOM construction A->{SR}->B, where A and B are DOM nodes with listeners for "focus" and {SR} is a ShadowRoot, if a focus event is dispatched to B, the listeners will fire in order A, B. This seems incorrect.

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