Skip to content

<a download> can sometimes just navigate #7718

Open

Description

@domenic

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="/?url=https%3A%2F%2Fexample.com%2F" 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.

Activity

  1. domenic commented on Mar 23, 2022

    @domenic
    MemberAuthor

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

  2. added
    interopImplementations are not interoperable with each other
    on Mar 23, 2022
  3. annevk commented on Mar 3, 2025

    @annevk
    Member

    This sounds very similar to #2562.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    interopImplementations are not interoperable with each othertopic: navigation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions