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

	$this->nodeType = self::ELEMENT_NODE;
	$this->nodeName = mb_strtoupper($name);
	$this->tagName = $this->nodeName;

	if(self::$isNodeListAsArray)
	{
		$this->attributes = array();
	}
	else
	{
		$this->attributes = new NamedNodeMap;
	}
}