[Bug 22141] New: [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

            Bug ID: 22141
           Summary: [Shadow]: Need mechanism to tell if an element in a
                    ShadowRoot has been inserted into the Document
    Classification: Unclassified
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Component Model
          Assignee: dglazkov@chromium.org
          Reporter: dfreedm@google.com
        QA Contact: public-webapps-bugzilla@w3.org
            Blocks: 14978

Because of necessity of encapsulation, it is very hard to tell if an arbitrary
element has been inserted into the document.
Blink current hides the insertion state from compareDocumentPosition,but
document.contains will return the actual insertion state.
This seems fine to me, because contains would not leak the state of the
surrounding elements like compareDocumentPosition would.
I can also imagine cases where user code may want to gate on the insertion
state, such as updating a canvas.

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

Received on Wednesday, 22 May 2013 18:23:07 UTC