• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/dom/node.php
  • Класс: BitrixMainWebDOMNode
  • Вызов: Node::hasAttributes
public function hasAttributes()
{
	if(!$this->attributes)
	{
		return false;
	}

	if(self::$isNodeListAsArray)
	{
		return !empty($this->attributes);
	}
	else
	{
		return $this->attributes->getLength() > 0;
	}
}