(PHP 5, PHP 7, PHP 8)
DOMElement::removeAttributeNode — Removes attribute
   Removes attribute attr from the element.
  
attrThe attribute node.
   Returns true on success or false on failure.
  
DOM_NO_MODIFICATION_ALLOWED_ERRRaised if the node is readonly.
DOM_NOT_FOUND_ERROR
       Raised if attr is not an attribute of the element.