(PHP 5, PHP 7, PHP 8)
DOMElement::removeAttribute — Removes attribute
$qualifiedName): bool
Removes attribute named qualifiedName from the element.
qualifiedNameThe name of the attribute.
成功時(shí)返回 true, 或者在失敗時(shí)返回 false。
DOM_NO_MODIFICATION_ALLOWED_ERRRaised if the node is readonly.