- From: Hayato Ito <notifications@github.com>
- Date: Mon, 06 Jul 2015 00:34:47 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Monday, 6 July 2015 07:35:31 UTC
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. --- Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/131
Received on Monday, 6 July 2015 07:35:31 UTC