Skip to content

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

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions