Skip to content

It is unclear how tree of tress whose root tree is not a document tree should behave. #356

Description

@hayatoito

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.

Activity

  1. hayatoito commented on Jan 13, 2016

    @hayatoito
    ContributorAuthor

    I think this is a minor issue. Let me label this with v2.

  2. annevk commented on Jan 14, 2016

    @annevk
    Collaborator

    This is something we should have defined though, no? These are all v1 features.

  3. rniwa commented on Jan 14, 2016

    @rniwa
    Collaborator

    Indeed. This will impact interoperability of v1 API.

  4. added and removed on Jan 15, 2016
  5. hayatoito commented on Jan 15, 2016

    @hayatoito
    ContributorAuthor

    I got it. Let me use v1 label for all issues which may impact interoperability.

  6. hayatoito commented on Jan 15, 2016

    @hayatoito
    ContributorAuthor

    I'm going to fix the wording of the spec so that slot assigning API should work even in a such a disconnected tree of trees, whose root tree is not a document tree.

  7. added a commit that references this issue on Jul 30, 2025
    963bce3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions