DOMElement::removeAttribute
PHP Manual
PHP Manual»DOMElement»DOMElement::removeAttribute

DOMElement::removeAttribute

(PHP 5, PHP 7, PHP 8)

DOMElement::removeAttributeRemoves attribute

Опис

public function DOMElement::removeAttribute(string $qualifiedName): bool

Removes attribute named qualifiedName from the element.

Параметри

qualifiedName

The name of the attribute.

Значення, що повертаються

Повертає true у разі успіху або false в разі помилки.

Помилки/виключення

May throw a DOMException with the following error codes:

DOM_NO_MODIFICATION_ALLOWED_ERR

Raised if the node is readonly.

Прогляньте також

To Top