(PHP 5, PHP 7)
Declares the attribute specified by local name and namespace URI to be of type ID
public void DOMElement::setIdAttributeNS ( string $namespaceURI, string $localName, bool $isId )
Declares the attribute specified by localName
and namespaceURI
to be of type ID.
Parameters:
namespaceURI
The namespace URI of the attribute.
localName
The local name of the attribute, as prefix:tagname.
isId
Set it to TRUE
if you want name
to be of type ID, FALSE
otherwise.
Returns:
No value is returned.
Exception:
Raised if the node is readonly.
Raised if name
is not an attribute of this element.
See also:
DOMDocument::getElementById() -
Please login to continue.