DOMElement::removeAttributeNS
PHP function
Edit on GitHub ✎
(PHP 5, PHP 7, PHP 8)
Removes attribute
Description
DOMElement::removeAttributeNS(string|null $namespace, string $localName): void
Removes attribute localName in namespace namespace from the element.
Parameters
namespaceThe namespace URI.
localNameThe local name.
Return Values
Void
Errors/Exceptions
May throw a DOMException with the following error codes:
DOM_NO_MODIFICATION_ALLOWED_ERRRaised if the node is readonly.
See Also
DOMElement::hasAttributeNSDOMElement::getAttributeNSDOMElement::setAttributeNS