(PHP 5, PHP 7, PHP 8)
DOMElement::removeAttributeNode — Remove atributo
Remove o atributo attr do elemento.
attrO nó do atributo.
Pode lançar um DOMException com os seguintes códigos de erro:
DOM_NO_MODIFICATION_ALLOWED_ERRGerado se o nó for somente leitura.
DOM_NOT_FOUND_ERR
Gerado se attr não for um atributo do elemento.