tagName); if (!in_array($tag, ['a', 'button'])) { return null; } $doc = $element->ownerDocument; if ($doc === null) { return null; } $xpath = new DOMXPath($doc); $interactives = $xpath->query('.//a | .//button | .//input | .//select | .//textarea', $element); if ($interactives !== false && $interactives->length > 0) { return $this->createViolation( $element, "İç içe geçmiş etkileşimli öğeler bulundu (<{$tag}> içerisinde).", 'Ensure interactive controls are not nested.' ); } return null; } }