protected function getAttributeName(DOMElement $element, $attribute)
    {
        if ($this->isWebComponentFriendly() === true && preg_match('/^qti-/', $element->localName) === 1) {
            $qtiFriendlyClassName = XmlUtils::qtiFriendlyName($element->localName);
        
            if (in_array($qtiFriendlyClassName, self::$webComponentFriendlyClasses) === true) {
                return XmlUtils::webComponentFriendlyAttributeName($attribute);
            }
        }
        
        return $attribute;
    }