PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

DOMElement->removeAttributeNode()> <DOMElement->hasAttributeNS()
Last updated: Sun, 25 Nov 2007

view this page in

DOMElement->removeAttribute()

(No version information available, might be only in CVS)

DOMElement->removeAttribute() — Removes attribute

Description

DOMElement
bool removeAttribute ( string $name )

Removes attribute named name from the element.

Parameters

name

The name of the attribute.

Return Values

Επιστρέφει TRUE σε επιτυχία ή FALSE σε αποτυχία.

Errors/Exceptions

DOM_NO_MODIFICATION_ALLOWED_ERR

Raised if the node is readonly.



add a note add a note User Contributed Notes
DOMElement->removeAttribute()
saltymeat at hotmail dot com
22-Feb-2007 06:32
It appears that autogenerated xmlns attributes cannot be removed. Attempting to use <?php $node->removeAttribute("xmlns"); ?> returns false.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites