Skip to content

Commit

Permalink
Test child-less <script> serialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
heycam committed Aug 4, 2012
1 parent 22fff92 commit ac4aa54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/dom/serializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@ wows.describe('XML Serializer').addBatch({
var doc = new DOMParser().parseFromString('<test/>', 'text/xml');
doc.documentElement.appendChild(doc.createTextNode('hello ]]> there'));
console.assert(doc.documentElement.firstChild.toString() == 'hello ]]&gt; there');
}
},
'<script> element with no children': function() {
var doc = new DOMParser().parseFromString('<html><script></script></html>', 'text/html');
console.assert(doc.documentElement.firstChild.toString() == '<script></script>');
},
}).run();

0 comments on commit ac4aa54

Please sign in to comment.