• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/dom/element.php
  • Класс: BitrixMainWebDOMElement
  • Вызов: Element::getAttributeNode
public function getAttributeNode($name)
{
	$result = null;
	if($this->hasAttributes())
	{
		if(self::$isNodeListAsArray)
		{
			$result = $this->attributes[$name] ?? null;
		}
		else
		{
			$result = $this->attributes->getNamedItem($name);
		}
	}

	return $result;
}