DOMElement->removeAttribute()
DOMElement->removeAttribute() — 属性を削除する
説明
class DOMElement {bool removeAttribute ( string name )
} name という名前の属性を要素から削除します。
パラメータ
- name
-
属性の名前。
返り値
成功した場合に TRUE を、失敗した場合に FALSE を返します。エラー / 例外
- DOM_NO_MODIFICATION_ALLOWED_ERR
-
ノードが読み込み専用の場合に発生します。
参考
DOMElement->hasAttribute() |
DOMElement->getAttribute() |
DOMElement->setAttribute() |
DomElement->remove_attribute()
DomElement->remove_attribute() — 属性を削除する
説明
class DomElement {bool remove_attribute ( string name )
} 現在の
DomElement
ノードから属性を削除します。
パラメータ
- name
-
削除する属性名
返り値
成功した場合に TRUE を、失敗した場合に FALSE を返します。PHP 5 への移行
DOMElement->removeAttribute() を使用してください。Weblioに収録されているすべての辞書からDOMElement->removeAttribute()を検索する場合は、下記のリンクをクリックしてください。

- DOMElement->removeAttribute()のページへのリンク