The DOMAttr class
(PHP 5, PHP 7, PHP 8)
Introduction
DOMAttr represents an attribute in the DOMElement object.
Class synopsis
bool
$exclusive
= false
,bool
$withComments
= false
,?array
$xpath
= null
,?array
$nsPrefixes
= null
): string|false
string
$uri
,bool
$exclusive
= false
,bool
$withComments
= false
,?array
$xpath
= null
,?array
$nsPrefixes
= null
): int|false
Properties
- name
-
The name of the attribute.
- ownerElement
-
The element which contains the attribute or
null
. - schemaTypeInfo
-
Not implemented yet, always is
null
. - specified
-
Not implemented yet, always is
true
. - value
-
The value of the attribute.
Table of Contents
- DOMAttr::__construct — Creates a new DOMAttr object
- DOMAttr::isId — Checks if attribute is a defined ID