Skip to content

Anchor tag with download prop skips contents after # character #7422

Open
@rostamiani

Description

@rostamiani

I'm using an anchor tag to export my data to a csv file:

  <a href="data:text;charset=utf-8,1,2,3,4,5" download="myfile.csv">Download</a>

But sometimes there is a # character in the data that and the file after this character is not exporting!
Example:

<a href="data:text;charset=utf-8,Start # This will be skipped" download="myfile.csv">Download</a>

You can see this bug here:
https://jsfiddle.net/rostamiani/xswar3fj/2/

I'm using Firefox 93.0 on Ubuntu 21.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs testsMoving the issue forward requires someone to write tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions