Re: [w3c/webcomponents] Retargeting algorithm shouldn't set relatedTarget to null even when target and relatedNode are in two distinct disconnected trees (#494)

My bad for not responding this issue.

I think the problem here is that we have not considered seriously how such a disconnected tree should be treated in Shadow DOM world. We have to make a decision.

I think the root cause is the definition of unclosed node:

> A node A is an unclosed node of a node B, if A's root is a shadow-including inclusive ancestor of B, or A's root is a shadow root whose associated mode is "open" and the root's host is an unclosed node of B.

We might want to extend this definition so that it includes the following condition too:

A node *A* is an unclosed node of a node *B* if:

- *A* is in a node tree whose root is not a shadow root
- *B* is in a node tree whose root is not a shadow root
- *A*'s owner Document and *B*'s owner Document are same.

WDTY? Does this make sense? Is it okay that A can *see* B? (or vice-verse)

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/494#issuecomment-221801654

Received on Thursday, 26 May 2016 07:51:58 UTC