8000 fix: make `noreferrer` warning less zealous by benmccann · Pull Request #8230 · sveltejs/svelte · GitHub
[go: up one dir, main page]

Skip to content

fix: make noreferrer warning less zealous #8230

New issue

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

Merged
merged 10 commits into from
Jan 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove needless bracket
  • Loading branch information
baseballyama committed Jan 28, 2023
commit 0a8bc75a22e20d7d2267bcd60e7367f8a6ff985c
2 changes: 1 addition & 1 deletion src/compiler/compile/nodes/Element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ export default class Element extends Node {
const rel = attribute_map.get('rel');
if (rel == null || rel.is_static) {
const rel_values = rel ? rel.get_static_value().split(regex_any_repeated_whitespaces) : [];
if (!rel || (!rel_values.includes('noreferrer'))) {
if (!rel || !rel_values.includes('noreferrer')) {
component.warn(this, {
code: 'security-anchor-rel-noreferrer',
message:
Expand Down
0