yanwong / ganon

Automatically exported from code.google.com/p/ganon
0 stars 0 forks source link

setInnerText content is not query-able #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

I'm curious whether the following behavior is supposed to work, or if not is 
there some kind of workaround? Thanks!

What will reproduce the problem?

$html = str_get_dom('<div id="a"></div>');
$html('#a', 0)->setInnerText('<div id="b"></div>');
$html('#b', 0)->setInnerText('hello');
echo $html;

What is the expected output?
<div id="a"><div id="b">hello</div></div>

What do you see instead?
<div id="a"><div id="b"></div></div>

Original issue reported on code.google.com by d...@phiffer.org on 13 Apr 2011 at 3:18

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r58.

Original comment by niels....@gmail.com on 13 Apr 2011 at 12:44

GoogleCodeExporter commented 8 years ago
Thank you very much for reporting! This should indeed work. I believe I fixed 
it in rev. #58 :)

Original comment by niels....@gmail.com on 13 Apr 2011 at 12:46

GoogleCodeExporter commented 8 years ago
Excellent, thanks for looking into this so quickly!

Original comment by d...@phiffer.org on 13 Apr 2011 at 4:58