php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #29817 DOMElement->getElementsByTagName ( string name)
Submitted: 2004-08-24 16:24 UTC Modified: 2004-10-30 17:43 UTC
From: erik at nordicaudi dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.0.0 OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: erik at nordicaudi dot com
New email:
PHP Version: OS:

 

 [2004-08-24 16:24 UTC] erik at nordicaudi dot com
Description:
------------
Published version (16-08-2004), VI. Function Reference, XXIV. DOM Functions

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."


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-30 17:43 UTC] didou@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:11 UTC] phpdocbot@php.net
Automatic comment on behalf of didou
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=48e7161457682c753ea25e49438576849a1bba51
Log: fix #29817 and #29818
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 23:01:33 2025 UTC