You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"The indicated part of the document" should only look for an element in the document tree #1192
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
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.
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.
Activity
rniwa commentedon May 4, 2016
@annevk @hayatoito @domenic @travisleithead
rniwa commentedon May 4, 2016
Step 6 has the same issue:
domenic commentedon May 4, 2016
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.
domenic commentedon May 4, 2016
Oh, that was the issue you linked to in your OP. Should have clicked the link before submitting my comment.
Add a test for scrolling to a fragment inside a shadow tree.
Add a test for scrolling to a fragment inside a shadow tree. (#2953)
Fragments can only point to nodes in documents
Fragments can only point to nodes in documents
annevk commentedon May 26, 2016
Thanks again for filing this!
Add a test for scrolling to a fragment inside a shadow tree. (web-pla…
Add a test for scrolling to a fragment inside a shadow tree. (web-pla…