note 82668 added to class.domnodelist
| From: | brack at wjp dot de | Date: | Mon, 21 Apr 2008 09:35:26 +0000 |
| Subject: | note 82668 added to class.domnodelist | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-138610@lists.php.net to get a copy of this message | ||
In PHP 5.2.5 (Windows) it is not possible to iterate correctly over the DOMNodeList object returned
by DOMNode->childNodes using foreach. Instead I had to use the for loop in conjunction with the
item() method of DOMNodeList for iterating over all child nodes correctly.
I don't know whether this is really a bug, but apparently it is.
----
Server IP: 212.124.37.9
Probable Submitter: 212.65.13.82
----
Manual Page -- http://www.php.net/manual/en/class.domnodelist.php
Edit -- https://master.php.net/note/edit/82668
Del: integrated -- https://master.php.net/note/delete/82668/integrated
Del: useless -- https://master.php.net/note/delete/82668/useless
Del: bad code -- https://master.php.net/note/delete/82668/bad+code
Del: spam -- https://master.php.net/note/delete/82668/spam
Del: non-english -- https://master.php.net/note/delete/82668/non-english
Del: in docs -- https://master.php.net/note/delete/82668/in+docs
Del: other reasons-- https://master.php.net/note/delete/82668
Reject -- https://master.php.net/note/reject/82668
Search -- https://master.php.net/manage/user-notes.php