[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

Hayato Ito <hayato@chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hayato@chromium.org

--- Comment #5 from Hayato Ito <hayato@chromium.org> ---
I think we can simulate the proposed *contains()* in JavaScript by using
InsertionPoint.getDistributedNodes() and Node.getDestinationInsertionPoints().
I am aware that this will be burden for users, but it could be possible though
I've not tried.

I don't think it's good idea to change the semantics of existing contains(). It
should consider only a node tree and should ignore the status of the composed
tree.

I am not against adding something new in native Shadow DOM if we need it
absolutely.

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

Received on Friday, 25 October 2013 04:09:08 UTC