|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52136 ->children matches only nodetype=1 (no text node is matched)
Submitted: 2010-06-22 04:49 UTC Modified: 2017-10-24 06:15 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: giorgio dot liscio at email dot it Assigned:
Status: Open Package: SimpleXML related
PHP Version: 5.3.2 OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: giorgio dot liscio at email dot it
New email:
PHP Version: OS:


 [2010-06-22 04:49 UTC] giorgio dot liscio at email dot it
if you have an xml like this:

<div id="test">

only <b> <i> <u> children elements are matched in ->children

implementing ->childNodes as in HTMLDOM can be a good solution

in htmldom
.children matches only nodeType=1
.childNodes matches all 

thank you


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-23 01:42 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: rrichards
 [2017-10-24 06:15 UTC]
-Status: Assigned +Status: Open -Assigned To: rrichards +Assigned To:
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue May 18 07:01:23 2021 UTC