PHP: DOMElement->removeAttribute() - Manual

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: Fri, 26 Jan 2007

view this page in

# DOMElement->removeAttribute()

(no version information, might be only in CVS)

DOMElement->removeAttribute() -- Removes attribute

## Описание

class DOMElement {
bool removeAttribute ( string name )
}

Removes attribute named `name` from the element.

## Список параметров

`name`

  The name of the attribute.

## Возвращаемые значения

Возвращает `TRUE` в случае успешного завершения или `FALSE` в случае возникновения ошибки.

## Errors/Exceptions

`DOM_NO_MODIFICATION_ALLOWED_ERR`

  Raised if the node is readonly.

## Смотрите также

DOMElement->hasAttribute()
DOMElement->getAttribute()
DOMElement->setAttribute()

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.`
add a note
DOMElement->removeAttributeNode() DOMElement->hasAttributeNS()

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST