DOMElement::removeAttribute
(PHP 5, PHP 7, PHP 8)
DOMElement::removeAttribute — Removes attribute
Description
Removes attribute named qualifiedName from the element.
Parameters
qualifiedNameThe name of the attribute.
Errors/Exceptions
May throw a DOMException with the following error codes:
DOM_NO_MODIFICATION_ALLOWED_ERRRaised if the node is readonly.
See Also
- DOMElement::hasAttribute() - Checks to see if attribute exists
- DOMElement::getAttribute() - Returns value of attribute
- DOMElement::setAttribute() - Adds new or modifies existing attribute
↑ and ↓ to navigate • Enter to select • Esc to close • / to open