Re: [webcomponents] Figure out terminology for Shadow DOM that everyone agrees on (#382)

> I don't follow. A node tree's root node is either a Document, ShadowRoot, or something else, right? It's a shadow tree if the root node is a shadow tree, and document tree if its root node is a Document.

Yeah, a couple of facts:
- The root tree in a composed tree is not always a document tree.
- A leaf node tree in a composed tree is always a shadow tree.
- A node tree which is not a shadow tree, such as DocumentFragment, is always a root tree in a composed tree.

e.g. The result of createElement('div'). That is a node tree that has only one node. We can not call it a document tree nor a shadow tree. This node tree itself is the root tree of a composed tree by definition.

Even when we attach a shadow tree to this node, Shadow DOM should work in this composed tree, whose root tree is not a document tree




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

Received on Wednesday, 2 March 2016 10:53:08 UTC