elements have aria-label, aria-labelledby, or title attribute for accessible name.'; } public function getStandard(): WCAGStandard { return WCAGStandard::A; } public function getSeverity(): Severity { return Severity::ERROR; } public function getLevel(): int { return 3; } public function check(DOMElement $element): ?Violation { if (strtolower($element->tagName) !== 'embed') { return null; } $ariaLabel = $element->getAttribute('aria-label'); $ariaLabelledby = $element->getAttribute('aria-labelledby'); $title = $element->getAttribute('title'); if (empty(trim($ariaLabel)) && empty(trim($ariaLabelledby)) && empty(trim($title))) { return $this->createViolation( $element, ' öğesinde erişilebilir isim eksik.', 'Provide an aria-label, aria-labelledby, or title attribute for the element.' ); } return null; } }