diff --git a/reference/dom/functions/dom-domdocument-getelementbyid.xml b/reference/dom/functions/dom-domdocument-getelementbyid.xml index b0dc6d1b6b..f417e42fe1 100644 --- a/reference/dom/functions/dom-domdocument-getelementbyid.xml +++ b/reference/dom/functions/dom-domdocument-getelementbyid.xml @@ -1,5 +1,5 @@ - + DOMDocument->getElementById() @@ -20,8 +20,10 @@ searches for an element with a given id. - According to the DOM standard this requires a DTD which defines the - attribute ID to be of type ID. You need to validate your document with + For this function to work, you will need either to set some ID attributes + with + or a DTD which defines an attribute to be of type ID. + In the later case, you will need to validate your document with or DOMDocument->validateOnParse before using this function. diff --git a/reference/dom/functions/dom-domelement-setidattribute.xml b/reference/dom/functions/dom-domelement-setidattribute.xml index e7ca59d3c3..a3db56e1ed 100644 --- a/reference/dom/functions/dom-domelement-setidattribute.xml +++ b/reference/dom/functions/dom-domelement-setidattribute.xml @@ -1,25 +1,89 @@ - + - DOMElement::setIdAttribute + DOMElement->setIdAttribute() Declares the attribute specified by name to be of type ID &reftitle.description; - - voidDOMElement::setIdAttribute - stringname - boolisId - - + + DOMElement + + voidsetIdAttribute + stringname + boolisId + + - Specification + Declares the attribute name to be of type ID. + + + + &reftitle.parameters; + + + + name + + + The name of the attribute. + + + + + isId + + + Set it to &true; if you want name to be of type + ID, &false; otherwise. + + + + + + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.errors; + + + + DOM_NO_MODIFICATION_ALLOWED_ERR + + + Raised if the node is readonly. + + + + + DOM_NOT_FOUND + + + Raised if name is not an attribute of this element. + + + + + + + + + &reftitle.seealso; + + + + + + - - - &warn.undocumented.func; - diff --git a/reference/dom/functions/dom-domelement-setidattributenode.xml b/reference/dom/functions/dom-domelement-setidattributenode.xml index d565f6b60b..cf0987fe89 100644 --- a/reference/dom/functions/dom-domelement-setidattributenode.xml +++ b/reference/dom/functions/dom-domelement-setidattributenode.xml @@ -1,24 +1,90 @@ - + - DOMElement::setIdAttributeNode + DOMElement->setIdAttributeNode() Declares the attribute specified by node to be of type ID &reftitle.description; - - voidDOMElement::setIdAttributeNode - attridAttr - boolisId - - + + DOMElement + + voidsetIdAttributeNode + DOMAttrattr + boolisId + + - Specification + Declares the attribute specified by attr to be of + type ID. + + + + &reftitle.parameters; + + + + attr + + + The attribute node. + + + + + isId + + + Set it to &true; if you want name to be of type + ID, &false; otherwise. + + + + + + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.errors; + + + + DOM_NO_MODIFICATION_ALLOWED_ERR + + + Raised if the node is readonly. + + + + + DOM_NOT_FOUND + + + Raised if name is not an attribute of this element. + + + + + + + + + &reftitle.seealso; + + + + + + - - &warn.undocumented.func; - diff --git a/reference/dom/functions/dom-domelement-setidattributens.xml b/reference/dom/functions/dom-domelement-setidattributens.xml index bc7224343f..998995b232 100644 --- a/reference/dom/functions/dom-domelement-setidattributens.xml +++ b/reference/dom/functions/dom-domelement-setidattributens.xml @@ -1,25 +1,99 @@ - + - DOMElement::setIdAttributeNs + DOMElement->setIdAttributeNS() Declares the attribute specified by local name and namespace URI to be of type ID &reftitle.description; - - voidDOMElement::setIdAttributeNs - stringnamespaceURI - stringlocalName - boolisId - - + + DOMElement + + voidsetIdAttributeNS + stringnamespaceURI + stringlocalName + boolisId + + - Specification + Declares the attribute specified by localName and + namespaceURI to be of type ID. + + + + &reftitle.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. + + + + + + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.errors; + + + + DOM_NO_MODIFICATION_ALLOWED_ERR + + + Raised if the node is readonly. + + + + + DOM_NOT_FOUND + + + Raised if name is not an attribute of this element. + + + + + + + + + &reftitle.seealso; + + + + + + - - &warn.undocumented.func; - diff --git a/reference/dom/functions/dom-domnode-isdefaultnamespace.xml b/reference/dom/functions/dom-domnode-isdefaultnamespace.xml index 414d97257e..b81a66cd3c 100644 --- a/reference/dom/functions/dom-domnode-isdefaultnamespace.xml +++ b/reference/dom/functions/dom-domnode-isdefaultnamespace.xml @@ -1,23 +1,45 @@ - + - DOMNode::isDefaultNamespace + DOMNode->isDefaultNamespace() Checks if the specified namespaceURI is the default namespace or not &reftitle.description; - - boolDOMNode::isDefaultNamespace - stringnamespaceURI - + + DOMNode + + boolisDefaultNamespace + stringnamespaceURI + + - Specification + Tells whether namespaceURI is the default namespace. + + + + &reftitle.parameters; + + + + namespaceURI + + + The namespace URI to look for. + + + + + + + + &reftitle.returnvalues; + + Return &true; if namespaceURI is the default + namespace, &false; otherwise. - - &warn.undocumented.func; - diff --git a/reference/dom/reference.xml b/reference/dom/reference.xml index 93f93831d4..566a9e80cb 100644 --- a/reference/dom/reference.xml +++ b/reference/dom/reference.xml @@ -1,5 +1,5 @@ - + @@ -588,6 +588,15 @@ - Adds new attribute + + - Declares the ID attribute + + + - Declares the ID attribute + + + - Declares the ID attribute +
@@ -857,6 +866,10 @@ - Adds a new child before a reference node + + - Checks if the specified namespaceURI is + the default namespace + - Indicates if two nodes are the same node