Skip to content

Note that referrer policy and noreferrer apply to link downloads - #46321

Merged
Josh-Cena merged 3 commits into
mdn:mainfrom
athulsreekumar:a-referrer-policy-downloads
Oct 28, 2026
Merged

Josh-Cena merged 3 commits into
mdn:mainfrom
athulsreekumar:a-referrer-policy-downloads

Conversation

@athulsreekumar

Copy link
Copy Markdown
Contributor

Description

Updates the <a> referrerpolicy attribute and rel="noreferrer" docs to note they also apply when the link is downloaded (via the download attribute), not only when it's followed.

Motivation

whatwg/html#13152 makes "download the hyperlink" use the link's referrer policy. As noted in the issue, browsers already behave this way, except Chrome for rel="noreferrer".

Related issues and pull requests

Fixes #46313

@athulsreekumar
athulsreekumar requested a review from a team as a code owner October 28, 2026 19:40
@athulsreekumar
athulsreekumar requested review from estelle and removed request for a team October 28, 2026 19:40
@github-actions github-actions Bot added Content:HTML Hypertext Markup Language docs size/xs [PR only] 0-5 LoC changed labels Oct 28, 2026
@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Preview URLs (2 pages)

(comment last updated: 2026-10-28 20:17:56)

@Josh-Cena

Copy link
Copy Markdown
Member

Hi @shannonbooth I'm replacing it with the umbrella term "fetching", which we already use on pages like https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/referrerPolicy. Please confirm this would be sufficient.

@shannonbooth

Copy link
Copy Markdown

Yeah no problem at all from me! I wasn't even 100% sure I should raise a MDN issue originally

@Josh-Cena

Copy link
Copy Markdown
Member

Yeah seems like a small change to make it adhere to web reality

@Josh-Cena
Josh-Cena merged commit 9417243 into mdn:main Oct 28, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:HTML Hypertext Markup Language docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

<a> referrerpolicy and rel=noreferrer also apply to downloads

3 participants