DOMElement::setIdAttribute

(PHP 5, PHP 7, PHP 8)

DOMElement::setIdAttributeDeclara el atributo especificado por su nombre como de tipo ID

Descripción

public DOMElement::setIdAttribute(string $name, bool $isId): void

Declara el atributo name como de tipo ID.

Parámetros

name

El nombre del atributo.

isId

Establecer a true si se quiere que name sea de tipo ID, false si no.

Valores devueltos

No devuelve ningún valor.

Errores/Excepciones

DOM_NO_MODIFICATION_ALLOWED_ERR

Lanzado si el nodo es de sólo lectura.

DOM_NOT_FOUND

Lanzado si name no es un atributo de este elemento.

Ver también

add a note add a note

User Contributed Notes

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