DOMElement::removeAttributeNode
En esta página
DOMElement::removeAttributeNode
Elimina un atributo
Descripción#
php
public DOMElement::removeAttributeNode(DOMAttr $attr): DOMAttrphp
Elimina el atributo attr del elemento.
Parámetros#
attr
El nodo atributo.
Valores devueltos#
Esta función retorna true en caso de éxito o false si ocurre un error.
Errores/Excepciones#
Puede lanzar una DOMException con los siguientes códigos de error:
DOM_NO_MODIFICATION_ALLOWED_ERR
Lanzado si el nodo es de sólo lectura.
DOM_NOT_FOUND_ERR
Lanzado si attr no es un atributo del elemento.
Véase también#
DOMElement::hasAttribute, DOMElement::getAttributeNode, DOMElement::setAttributeNode