Editorial question59K views4,155 votes0 answers4,899 following
AI-generatedDownload attribute on cross‑origin links: expected behavior?
The download attribute is intended to trigger a file download instead of navigation. The HTML5 spec requires the attribute to be ignored for cross‑origin URLs, yet Chrome, Edge, and Safari sometimes allow the download or prompt the user, creating inconsistent behavior. Additionally, the spec does not define how browsers should determine the file name or MIME