[Bug 22141] [Shadow]: Need mechanism to tell if an element in a ShadowRoot has been inserted into the Document

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22141

Elliott Sprehn <esprehn@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |esprehn@gmail.com

--- Comment #10 from Elliott Sprehn <esprehn@gmail.com> ---
(In reply to Hayato Ito from comment #9)
> If we go for idea B, we need API to satisfy the original requirement.
> 
> Because node.inComposedTree() is just an tentative idea, I appreciate
> opinions for better API to satisfy the requirement.
> 
> Other ideas:
> - document.containsInComposedTree(node) - I think this is preferred.
> 
> Any ideas are welcome!

I think there's two separate questions here, Document.contains and
Node.contains seem like totally separate questions.

"Am I in this Document"
"Am I a child of this Node"

Now that we have ShadowRoot.host you can actually walk up to the root and get
the answer you want though, so perhaps reverting this is okay. We should
probably add an inDocument() method though.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Saturday, 15 March 2014 02:12:10 UTC