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

Correct behavior for URL fragment links #914

Merged
merged 3 commits into from
Nov 10, 2022
Merged

Conversation

NiedziolkaMichal
Copy link
Member

This PR makes <a href="#id"> update window.location.hash property. This will enable use of :target in CSS and I will be able to make interactive example like this:
image

Also I added if(element), so exception is not thrown when element present in URL fragment is missing.

@github-actions
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@queengooborg queengooborg merged commit 6d82045 into mdn:main Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants