Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setInnerText content is not query-able #4

Closed
GoogleCodeExporter opened this issue Feb 17, 2016 · 3 comments
Closed

setInnerText content is not query-able #4

GoogleCodeExporter opened this issue Feb 17, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

This issue was closed by revision r58.

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

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

Excellent, thanks for looking into this so quickly!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant