PHP :: Bug #25900 :: DomDocument->get_elements_by_tagname('tagName') doesn't find elements
| Bug #25900 | DomDocument->get_elements_by_tagname('tagName') doesn't find elements | ||||
|---|---|---|---|---|---|
| Submitted: | 2003-10-18 10:52 UTC | Modified: | 2003-10-20 11:42 UTC | ||
| From: | Martin dot Honnen at arcor dot de | Assigned: | |||
| Status: | Closed | Package: | DOM XML related | ||
| PHP Version: | 4.3.3 | OS: | Windows XP | ||
| Private report: | No | CVE-ID: | None | ||
[2003-10-18 10:52 UTC] Martin dot Honnen at arcor dot de
Description: ------------ Testing with PHP 4.3.3 on Windows and DOMXML setup as DOM/XML enabled DOM/XML API Version 20020815 libxml Version 20507 HTML Support enabled XPath Support enabled XPointer Support enabled DOM/XSLT enabled libxslt Version 1.0.30 libxslt compiled against libxml Version 2.5.7 I encounter a problem with get_elements_by_tagname called on the document node, it doesn't find elements in the document. Example XML document is at http://home.arcor.de/martin.honnen/phpBugs/domxml/xhtmlExample1.xml a test PHP program demonstrating the problem is at http://home.arcor.de/martin.honnen/phpBugs/domxml/get_elements_by_tagnameTest1.php Reproduce code: --------------- http://home.arcor.de/martin.honnen/phpBugs/domxml/get_elements_by_tagnameTest1.php Expected result: ---------------- The test program calls get_elements_by_tagname on the document node and calls the method again on the documentElement node, both calls should find the same elements (and number of elements, in the example one element). Actual result: -------------- get_elements_by_tagname called on the document node doesn't find any elements while the method called on the documentElement node finds one element.
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2003-10-20 11:42 UTC] rrichards@php.net