DOMElement->removeAttributeNode()
DOMElement->removeAttributeNode() — 属性を削除する
説明
class DOMElement {bool removeAttributeNode ( DOMAttr oldnode )
} 属性 oldnode を要素から削除します。
パラメータ
- oldnode
-
属性ノード。
返り値
成功した場合に TRUE を、失敗した場合に FALSE を返します。エラー / 例外
- DOM_NO_MODIFICATION_ALLOWED_ERR
-
ノードが読み込み専用の場合に発生します。
- DOM_NOT_FOUND_ERROR
-
oldnode が要素の属性でない場合に発生します。
参考
DOMElement->hasAttribute() |
DOMElement->getAttributeNode() |
DOMElement->setAttributeNode() |
- DOMElement->removeAttributeNode()のページへのリンク