You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mouse events should be targeted to nearest Element, in general parentNode.
But (1) what if ShadowRoot has just textnodes as children? Should the ShadowRoot itself be in the path? I think not. Hit testing should just target the host.
(2) what if a textnode is distributed? Should the event propagate through the Shadow DOM? I think yes.
In Gecko I'll make the textnode -> some_element to use the nearest
Element in the final flattened tree.
The text was updated successfully, but these errors were encountered:
Title: [Shadow] How should mouse (&co) events be targeted in case user clicks on a text node (bugzilla: 28902)
Migrated from: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28902
comment: 0
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28902#c0
Olli Pettay wrote on 2015-07-05 22:38:39 +0000.
Mouse events should be targeted to nearest Element, in general parentNode.
But (1) what if ShadowRoot has just textnodes as children? Should the ShadowRoot itself be in the path? I think not. Hit testing should just target the host.
(2) what if a textnode is distributed? Should the event propagate through the Shadow DOM? I think yes.
In Gecko I'll make the textnode -> some_element to use the nearest
Element in the final flattened tree.
The text was updated successfully, but these errors were encountered: