Bug #52136 [Opn->Wfx]: ->children matches only nodetype=1 (no text node is matched)
Edit report at https://bugs.php.net/bug.php?id=52136&edit=1
ID: 52136
Updated by: cmb@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: Wont fix
Type: Bug
Package: SimpleXML related
Operating System: all
PHP Version: 5.3.2
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
I don't think that SimpleXML will ever be able to properly handle
mixed content, and given that there was no traction for more than
ten years on this ticket, I'm closing as WONTFIX.
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 https://bugs.php.net/bug.php?id=52136&edit=1
Thread (4 messages)