tagName) !== 'a') { return null; } if (strtolower($element->getAttribute('target')) === '_blank') { $rel = strtolower($element->getAttribute('rel')); if (!str_contains($rel, 'noopener') && !str_contains($rel, 'noreferrer')) { return $this->createViolation( $element, $this->getDescription(), 'Add rel="noopener" or rel="noreferrer" to the link to improve security, performance, and screen reader notification.' ); } } return null; } }