(PHP 5, PHP 7, PHP 8)
DOMElement::removeAttributeNode — Removes attribute
$attr
Removes attribute attr from the element.
attr
The attribute node.
Returns true on success or false on failure.
true
false
May throw a DOMException with the following error codes:
DOM_NO_MODIFICATION_ALLOWED_ERR
Raised if the node is readonly.
DOM_NOT_FOUND_ERR
Raised if attr is not an attribute of the element.