Error in doc for DOMElement->getElementsByTagName?
| From: | Erik Franzén | Date: | Mon, 23 Aug 2004 19:38:34 +0000 |
| Subject: | Error in doc for DOMElement->getElementsByTagName? | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969363442@lists.php.net to get a copy of this message | ||
Current published version (16-08-2004)
Description
object DOMElement->getElementsByTagName ( string name)
This function returns a new instance of class DOMNodeList containing the elements with tagnames matching the name parameter. Use "*" for the name to return all elements within the document.
--------------------------
Maybee its more correct to describe the function as follows:
"Returns a a new instance of class DOMNodeList of all descendant Elements with a given tag name, in the order in which they are encountered in a preorder traversal of this Element tree.
Use "*" for the name to return all elements within this Element tree."
W3C description is as follows:
"Returns a NodeList of all descendant Elements with a given tag name, in the order in which they are encountered in a preorder traversal of this Element tree."
DOMElement->getElementsByTagNameNS has the same "error".
/Erik