Skip to content

Commit f4fcc4d

Browse files
committed
typo
1 parent 3143f62 commit f4fcc4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/compile/nodes/Element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,10 +621,10 @@ export default class Element extends Node {
621621
const name_attribute = attribute_map.get('name');
622622
const target_attribute = attribute_map.get('target');
623623

624-
// links with target="_blank" should have no opener or noreferrer: https://developer.chrome.com/docs/lighthouse/best-practices/external-anchors-use-rel-noopener/
624+
// links with target="_blank" should have noopener or noreferrer: https://developer.chrome.com/docs/lighthouse/best-practices/external-anchors-use-rel-noopener/
625625
// modern browsers add noopener by default, so we only need to check legacy browsers
626626
// legacy browsers don't support noopener so we only check for noreferrer there
627-
If (component.compile_options.legacy && target_attribute && target_attribute.get_static_value() === '_blank' && href_attribute) {
627+
if (component.compile_options.legacy && target_attribute && target_attribute.get_static_value() === '_blank' && href_attribute) {
628628
const href_static_value = href_attribute.get_static_value() ? href_attribute.get_static_value().toLowerCase() : null;
629629

630630
if (href_static_value === null || href_static_value.match(/^(https?:)?\/\//i)) {

0 commit comments

Comments
 (0)