You should not create childelements of a <script>. You should create the resulting *tree* that you want, not the serialization that you want. What happens is that you create a child h2-element of the script, when the script then executes it just grabs all the text-children and concatinate those and execute, childelements are ignored. Agreeably this is debateable if it is the right behavious, we shold maybe just refuse to execute the script entierly. The resulting output is not valid html so no spec defines the behaviour. Compliments for a very nice way of attaching the testcase though!! I wish more people would do it this way.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 16 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.