(PHP 5, PHP 7)
DOMElement::removeAttribute — Removes attribute
$qualifiedName
) : bool
Removes attribute named qualifiedName
from the element.
qualifiedName
The name of the attribute.
成功时返回 true
, 或者在失败时返回 false
。
DOM_NO_MODIFICATION_ALLOWED_ERR
Raised if the node is readonly.