Automattic / Automattic/VIP-Coding-Standards
New Sniff: target="_blank"
Open
Good First Issue
help wanted
Standard: VIP-Go
Type: Enhancement
- Dominant language
- PHP
- Stars
- 261
- Forks
- 44
- Avg merge
- 19m
- Merged PRs (30d)
- 1
Description
## What problem would the enhancement address for VIP?
There's a potential issue with using `target="_blank"` and not using `rel="noopener"` or `rel="noreferrer"`.
See: https://web.dev/external-anchors-use-rel-noopener/
## Describe the solution you'd like
Maybe warn about this if we see `noopener` or `noreferrer` present?
## What code should be reported as a violation?
`Link`
## What code should *not* be reported as a violation?
`Link`
OR
`Link`
Contributor guide
Assessment
This issue has not been assessed yet.