awci / phpquery

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

Nested elements in script tag / create elements with jQuery #238

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
See expected output

What is the expected output? What do you see instead?
> <script>
>   jQuery('<div>I am text!</div>').appendTo(document.body);
> </script>

Instead:
> <script>
>   jQuery('<div>I am text!
> </script></div>').appendTo(document.body);

What version of the product are you using? On what operating system?
phpQuery 0.9.5r386
Ubuntu 13.10

Please provide any additional information below.
Similar to issue 158, but different in that it does not violate HTML 
specifications.
AFAIK, browsers mainly ignore text contained in script elements. Should be done 
here, too.

Original issue reported on code.google.com by beecees1...@gmail.com on 16 Feb 2014 at 10:44