This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28902 - [Shadow] How should mouse (&co) events be targeted in case user clicks on a text node
Summary: [Shadow] How should mouse (&co) events be targeted in case user clicks on a t...
Status: RESOLVED MOVED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-05 22:38 UTC by Olli Pettay
Modified: 2015-07-06 08:16 UTC (History)
0 users

See Also:


Attachments

Description Olli Pettay 2015-07-05 22:38:39 UTC
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.
Comment 1 Hayato Ito 2015-07-06 08:16:10 UTC
Moved to https://github.com/w3c/webcomponents/issues/131