Skip to content
This repository was archived by the owner on May 29, 2018. It is now read-only.

Conversation

@dsjoerg
Copy link

@dsjoerg dsjoerg commented Mar 7, 2014

For those who would rather not hit a server to simply export a CSV, you can use the code in this PR.

Browser compatibility here: http://caniuse.com/download

As of March 2014, works on current Chrome, Firefox, Opera, and others.

However, due to lack of compatibility on IE and Safari, I don't expect this PR can be accepted anytime soon.

@TorsteinHonsi
Copy link
Contributor

However, due to lack of compatibility on IE and Safari, I don't expect this PR can be accepted anytime soon.

If you are able to throw in some feature detection we could pull it.

@raveren
Copy link

raveren commented Apr 10, 2014

Here is the detection code:

var downloadAttrSupported = ("download" in document.createElement("a"));

taken from http://stackoverflow.com/questions/12112844/how-to-detect-support-for-the-html5-download-attribute#comment16193018_12112905

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants