• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/web/dom/element.php
  • Класс: BitrixMainWebDOMElement
  • Вызов: Element::hasAttribute
public function hasAttribute($attributeName)
{
	$result = false;
	if($this->hasAttributes())
	{
		if(self::$isNodeListAsArray)
		{
			$result = array_key_exists($attributeName, $this->attributes);
		}
		else
		{
			$result = !is_null($this->attributes->getNamedItem($attributeName));
		}
	}
	return $result;
}