We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
noopener
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As of 2021, the spec have changed on how target="_blank" anchor elements use openers. The usage of rel="noreferrer" implies noopener as well by default. See the spec mentioning this: https://html.spec.whatwg.org/multipage/links.html#link-type-noreferrer
target="_blank"
rel="noreferrer"
We should remove noopener on target="_blank" anchors, as there is no need to include it anymore. It can be tested on https://mathiasbynens.github.io/rel-noopener/
The react/jsx-no-target-blank lint rule is fine with only including noreferrer as the value.
react/jsx-no-target-blank
noreferrer
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Problem
As of 2021, the spec have changed on how
target="_blank"
anchor elements use openers. The usage ofrel="noreferrer"
impliesnoopener
as well by default. See the spec mentioning this: https://html.spec.whatwg.org/multipage/links.html#link-type-noreferrerSolution
We should remove
noopener
ontarget="_blank"
anchors, as there is no need to include it anymore. It can be tested on https://mathiasbynens.github.io/rel-noopener/Additional context
The
react/jsx-no-target-blank
lint rule is fine with only includingnoreferrer
as the value.The text was updated successfully, but these errors were encountered: