Skip to content

"The indicated part of the document" should only look for an element in the document tree #1192

Closed

Description

@rniwa

Step 5 of the indicated part of the document is somewhat ambiguous:

If there is an element in the DOM that has an ID exactly equal to decoded fragid, then the first such element in tree order is the indicated part of the document; stop the algorithm here.

We should clarify that if there is an element in the document tree or that the first such element in document in tree order per resolution on WICG/webcomponents#66

Activity

  1. rniwa commented on May 4, 2016

    @rniwa
    Author
  2. rniwa commented on May 4, 2016

    @rniwa
    Author

    Step 6 has the same issue:

    No decoded fragid: If there is an a element in the DOM that has a name attribute whose value is exactly equal to fragid (not decoded fragid), then the first such element in tree order is the indicated part of the document; stop the algorithm here.

  3. domenic commented on May 4, 2016

    @domenic
    Member

    I feel like there was a previous issue on the webcomponents repo for navigating to fragment IDs in the shadow DOM. But yeah, the conclusion was to not do such navigation if I recall. This is one of the many "in a document" checks that need to be audited and fixed; it's really helpful you found this one since it doesn't use "in a document" so it's harder to find via naive searching.

  4. domenic commented on May 4, 2016

    @domenic
    Member

    Oh, that was the issue you linked to in your OP. Should have clicked the link before submitting my comment.

  5. added
    topic: shadow
    on May 4, 2016
  6. added a commit that references this issue on May 25, 2016
    85cab97
  7. added a commit that references this issue on May 26, 2016
    fc90400
  8. annevk commented on May 26, 2016

    @annevk
    Member

    Thanks again for filing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

topic: shadow

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions