After I replaced "node tree" with "component tree" in 588ecdf, I realized that it would affect the behavior of "tree of trees", in a sense before the commit, whose root tree is not a document tree.
The current spec does not say anything how such a disconnected (from a document) tree of trees should behave.
e.g.
const host = document.createElement('div');
const child = document.createElement('div');
const shadowRoot = host.attachShadow({mode: 'open'});
shadowRoot.appendChild(document.createElement('slot'));
// Note that host is not inserted into a document.
console.log(child.assignedSlot); // What should be?
FYI. in current Blink's implementation, the distribution is correctly calculated even for such a disconnected tree of trees.
After I replaced "node tree" with "component tree" in 588ecdf, I realized that it would affect the behavior of "tree of trees", in a sense before the commit, whose root tree is not a document tree.
The current spec does not say anything how such a disconnected (from a document) tree of trees should behave.
e.g.
const host = document.createElement('div'); const child = document.createElement('div'); const shadowRoot = host.attachShadow({mode: 'open'}); shadowRoot.appendChild(document.createElement('slot')); // Note that host is not inserted into a document. console.log(child.assignedSlot); // What should be?FYI. in current Blink's implementation, the distribution is correctly calculated even for such a disconnected tree of trees.