Re: [webcomponents] [Shadow]: elementFromPoint should return the host when you hit a Text node (bugzilla: 24638) (#67)

Hmm. I realized that we can get the same result by the following the simple rule. We don't need a complex rule for adjusting. :)

1. If the TextNode is the child of the shadow root, return the shadow host of it.
2. Otherwise, return the parent node.

However, in the case of issue #131, we can use just the composed parent of the TextNode because we don't need to worry about encapsulation.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/67#issuecomment-121824540

Received on Thursday, 16 July 2015 04:17:58 UTC