• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/dom/element.php
  • Класс: BitrixMainWebDOMElement
  • Вызов: Element::getAttribute
public function getAttribute($name)
{
	$attr = $this->getAttributeNode($name);
	if($attr)
	{
		return $attr->getValue();
	}

	return null;
}