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

		$oldNode->setParentNode(null);
	}
}