DOMElement::setAttributeNodeNS
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
DOMElement::setAttributeNodeNS
Референца за `domelement.setattributenodens.php` со подобрена типографија и навигација.
DOMElement::setAttributeNodeNS
класата mysqli_driver
DOMElement::setAttributeNodeNS — Adds new attribute node to element
= NULL
Adds new attribute node attr to element, keeping the namespace into account. If an attribute with the same name already exists on the element, that attribute is replaced by attr.
Параметри
attr-
Јазол на атрибутот.
Вратени вредности
Returns the old attribute if it has been replaced or null if there was no old attribute. If a DOM_WRONG_DOCUMENT_ERR error is raised, and strictErrorChecking is false, false се враќа.
Errors/Exceptions
Може да фрли DOMException со следните кодови за грешки:
DOM_WRONG_DOCUMENT_ERR-
Покренато ако
attrbelongs to a different document than the element.
Види Исто така
- DOMElement::hasAttributeNS() - Провери дали атрибутот постои
- DOMElement::getAttributeNodeNS() - Враќа атрибут јазол
- DOMElement::removeAttributeNode() - Ја отстранува атрибутот