We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Rubocop expects a rel="noopener" for links with target="_blank" because of legacy security reasons.
rel="noopener"
target="_blank"
app/example.rb:12:34: C: [Correctable] Rails/LinkToBlank: Specify a :rel option containing noopener. link_to(text, url, target: '_blank') ^^^^^^^^^^^^^^^^
This is only relevant for IE11, since the HTML spec was changed and all modern browsers have adjusted.
I vote for disabling this cop in our default config, since we by default do not support IE11.
👍 Disable cop 👎 Keep cop enabled
The text was updated successfully, but these errors were encountered:
Disable Rails/LinkToBlank (closes (#30)
0dc07af
Released as 7.2.0.
Sorry, something went wrong.
codener
No branches or pull requests
Rubocop expects a
rel="noopener"
for links withtarget="_blank"
because of legacy security reasons.This is only relevant for IE11, since the HTML spec was changed and all modern browsers have adjusted.
I vote for disabling this cop in our default config, since we by default do not support IE11.
👍 Disable cop
👎 Keep cop enabled
The text was updated successfully, but these errors were encountered: