DOMElement
PHP Manual

DOMElement::removeAttributeNode

(PHP 5)

DOMElement::removeAttributeNodeRemoves attribute

Описание

bool DOMElement::removeAttributeNode ( DOMAttr $oldnode )

Removes attribute oldnode from the element.

Параметри

oldnode

The attribute node.

Връщани стойности

Връща TRUE при успех или FALSE при неуспех.

Грешки/Изключения

DOM_NO_MODIFICATION_ALLOWED_ERR

Raised if the node is readonly.

DOM_NOT_FOUND_ERROR

Raised if oldnode is not an attribute of the element.

Вж. също


DOMElement
PHP Manual