Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Shadow] How should mouse (&co) events be targeted in case user clicks on a text node (bugzilla: 28902) #131

Closed
hayatoito opened this issue Jul 6, 2015 · 1 comment

Comments

@hayatoito
Copy link
Contributor

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.

@hayatoito
Copy link
Contributor Author

I think #67 is related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant