DOMElement::removeAttribute

(PHP 5, PHP 7, PHP 8)

DOMElement::removeAttributeRemoves attribute

Beschreibung

publicDOMElement::removeAttribute(string$qualifiedName): bool

Removes attribute named qualifiedName from the element.

Parameter-Liste

qualifiedName

The name of the attribute.

Rückgabewerte

Gibt bei Erfolg true zurück. Bei einem Fehler wird false zurückgegeben.

Fehler/Exceptions

DOM_NO_MODIFICATION_ALLOWED_ERR

Raised if the node is readonly.

Siehe auch

To Top