DOMElement->setAttributeNode()
(No version information available, might be only in CVS)
DOMElement->setAttributeNode() β Adds new attribute node to element
ΠΠΏΠΈΡΠ°Π½ΠΈΠ΅
DOMElement
DOMAttr setAttributeNode
( DOMAttr $attr
)
Adds new attribute node attr to element.
Π‘ΠΏΠΈΡΠΎΠΊ ΠΏΠ°ΡΠ°ΠΌΠ΅ΡΡΠΎΠ²
- attr
-
The attribute node.
ΠΠΎΠ·Π²ΡΠ°ΡΠ°Π΅ΠΌΡΠ΅ Π·Π½Π°ΡΠ΅Π½ΠΈΡ
Returns old node if the attribute has been replaced or NULL.
Errors/Exceptions
- DOM_NO_MODIFICATION_ALLOWED_ERR
-
Raised if the node is readonly.
Π‘ΠΌΠΎΡΡΠΈΡΠ΅ ΡΠ°ΠΊΠΆΠ΅