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

<a download> can sometimes just navigate #7718

Open
domenic opened this issue Mar 17, 2022 · 1 comment
Open

<a download> can sometimes just navigate #7718

domenic opened this issue Mar 17, 2022 · 1 comment
Labels
interop Implementations are not interoperable with each other topic: navigation

Comments

@domenic
Copy link
Member

domenic commented Mar 17, 2022

Somewhat related to #5548, and will probably also be fixed as part of moving downloads into the navigation algorithm, but this is a separate issue:

If you put <a href="https://example.com/" download>Click me</a> on a page, this will not download example.com, at least in Chrome and Firefox: http://boom-bath.glitch.me/download-example.html

The current spec does not allow this. It allows bailing out and doing nothing, but the "download a hyperlink" algorithm never gets to the navigation algorithm.

@domenic
Copy link
Member Author

domenic commented Mar 23, 2022

Chrome will try to download <a download href="#foo"> whereas Firefox will navigate.

@domenic domenic added the interop Implementations are not interoperable with each other label Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interop Implementations are not interoperable with each other topic: navigation
Development

No branches or pull requests

1 participant