Bug #52136 [Opn->Asn]: ->children matches only nodetype=1 (no text node is matched)

From: Date: Tue, 22 Jun 2010 23:42:15 +0000
Subject: Bug #52136 [Opn->Asn]: ->children matches only nodetype=1 (no text node is matched)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-151781@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52136&edit=1

 ID:               52136
 Updated by:       felipe@php.net
 Reported by:      giorgio dot liscio at email dot it
 Summary:          ->children matches only nodetype=1 (no text node is
                   matched)
-Status:           Open
+Status:           Assigned
 Type:             Bug
 Package:          SimpleXML related
 Operating System: all
 PHP Version:      5.3.2
-Assigned To:      
+Assigned To:      rrichards



Previous Comments:
------------------------------------------------------------------------
[2010-06-22 04:49:49] giorgio dot liscio at email dot it

Description:
------------
if you have an xml like this:

<div id="test">
   hey
   <b>hey</b>
   hey
   <i>this</i>
   is
   <u>a</u>
   test
</div>

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



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52136&edit=1


Thread (4 messages)

« previous php.bugs (#151781) next »