Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a test for scrolling to a fragment inside a shadow tree. #2953

Conversation

rniwa
Copy link
Contributor

@rniwa rniwa commented May 5, 2016

As discussed on WICG/webcomponents#66 and whatwg/html#1192, the user agent should not use an element that has an ID exactly equal to decoded fragid or an anchor element with a name attribute exactly equal to fragid if the element inside a shadow tree as the indicated part of the document.

WebKit nightly builds and Google Chrome Canary both passes the test.

As discussed on WICG/webcomponents#66 and whatwg/html#1192,
the user agent should not use an element that has an ID exactly equal to decoded fragid or an anchor element
with a name attribute exactly equal to fragid if the element inside a shadow tree as the indicated part of the document.

WebKit nightly builds and Google Chrome Canary both passes the test.
@hoppipolla-critic-bot
Copy link

Critic review: https://critic.hoppipolla.co.uk/r/6478

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@wpt-pr-bot
Copy link
Collaborator

Reviewers for this pull request are: @hayatoito, @kojiishi, @rniwa, @sideshowbarker, @sizuhiko, @TakayoshiKochi, and @yutak.

@rniwa
Copy link
Contributor Author

rniwa commented May 5, 2016

<head>
<title>Shadow DOM: The indicated part of the document should not match an element inside a shadow tree</title>
<meta name="author" title="Ryosuke Niwa" href="mailto:rniwa@webkit.org">
<meta name="assert" content="An element insie a shadow tree should not be the indicated part of the document even if its ID is exactly equal to the decoded fragid or its name attribute is exactly equal to the fragid">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: s/insie/inside/

@TakayoshiKochi
Copy link
Member

Other than a nit, LGTM

@TakayoshiKochi TakayoshiKochi merged commit 034e4d5 into web-platform-tests:master May 20, 2016
@TakayoshiKochi
Copy link
Member

Let's merge and I'll fix the nit.

arronei pushed a commit to arronei/web-platform-tests that referenced this pull request Jun 14, 2016
…tform-tests#2953)

As discussed on WICG/webcomponents#66 and whatwg/html#1192,
the user agent should not use an element that has an ID exactly equal to decoded fragid or an anchor element
with a name attribute exactly equal to fragid if the element inside a shadow tree as the indicated part of the document.

WebKit nightly builds and Google Chrome Canary both passes the test.
ivanzr pushed a commit to ivanzr/web-platform-tests that referenced this pull request Jun 29, 2016
…tform-tests#2953)

As discussed on WICG/webcomponents#66 and whatwg/html#1192,
the user agent should not use an element that has an ID exactly equal to decoded fragid or an anchor element
with a name attribute exactly equal to fragid if the element inside a shadow tree as the indicated part of the document.

WebKit nightly builds and Google Chrome Canary both passes the test.
@rniwa rniwa deleted the add-fragment-navigation-test-for-shadow-dom branch August 2, 2022 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants