{"action":"opened","issue":{"url":"https://api.github.com/repos/hayatoito/test/issues/358","labels_url":"https://api.github.com/repos/hayatoito/test/issues/358/labels{/name}","comments_url":"https://api.github.com/repos/hayatoito/test/issues/358/comments","events_url":"https://api.github.com/repos/hayatoito/test/issues/358/events","html_url":"https://github.com/hayatoito/test/issues/358","id":93211107,"number":358,"title":"[Shadow] How should mouse (&co) events be targeted in case user clicks on a text node (bugzilla: 28902)","user":{"login":"hayatoito","id":160288,"avatar_url":"https://avatars.githubusercontent.com/u/160288?v=3","gravatar_id":"","url":"https://api.github.com/users/hayatoito","html_url":"https://github.com/hayatoito","followers_url":"https://api.github.com/users/hayatoito/followers","following_url":"https://api.github.com/users/hayatoito/following{/other_user}","gists_url":"https://api.github.com/users/hayatoito/gists{/gist_id}","starred_url":"https://api.github.com/users/hayatoito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hayatoito/subscriptions","organizations_url":"https://api.github.com/users/hayatoito/orgs","repos_url":"https://api.github.com/users/hayatoito/repos","events_url":"https://api.github.com/users/hayatoito/events{/privacy}","received_events_url":"https://api.github.com/users/hayatoito/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-06T07:30:23Z","updated_at":"2015-07-06T07:30:23Z","closed_at":null,"body":"Title: [Shadow] How should mouse (&co) events be targeted in case user clicks on a text node (bugzilla: 28902)\n\nMigrated from: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28902\n\n----\ncomment: 0\ncomment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28902#c0\n*Olli Pettay* wrote on 2015-07-05 22:38:39 +0000.\n\nMouse events should be targeted to nearest Element, in general parentNode.\nBut (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.\n\n(2) what if a textnode is distributed? Should the event propagate through the Shadow DOM? I think yes.\n\n\nIn Gecko I'll make the textnode -> some_element to use the nearest\nElement in the final flattened tree."}}