CakeFest 2024: The Official CakePHP Conference

DOMElement::setAttributeNodeNS

(PHP 5, PHP 7, PHP 8)

DOMElement::setAttributeNodeNSAña de un nuevo nodo de atributo al elemento

Descripción

public DOMElement::setAttributeNodeNS(DOMAttr $attr): DOMAttr|null|false

Añade el nuevo nodo atributo attr al elemento.

Parámetros

attr

El nodo atributo.

Valores devueltos

Devuelve el antiguo nodo si el atributo ya sido reemplazado.

Errores/Excepciones

DOM_NO_MODIFICATION_ALLOWED_ERR

Lanzado si el nodo es de sólo lectura.

Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top