DOMElement::removeAttribute
PHP function
Edit on GitHub ✎
(PHP 5, PHP 7, PHP 8)
Removes attribute
Description
DOMElement::removeAttribute(string $qualifiedName): bool
Removes attribute named qualifiedName from the element.
Parameters
qualifiedNameThe name of the attribute.
Return Values
Success
Errors/Exceptions
May throw a DOMException with the following error codes:
DOM_NO_MODIFICATION_ALLOWED_ERRRaised if the node is readonly.
See Also
DOMElement::hasAttributeDOMElement::getAttributeDOMElement::setAttribute