script clone bug

Looks like this is fixed in 1.7.2rc1, but figured it'd be worth addressing. When running this in IE (7) this problem is more apparent. clone() returns 'hello world' in all cases in Chrome 17, Firefox 3.6, 9, 11.

by rwaldron

HTML

<script id="stag" type="text/html">
    <div>hello world</div>
</script>

JavaScript

function run() {
    document.write("<h2>No cloning:</h2>" + $("#stag").html());
    document.write("<hr />")
    document.write("<h2>Cloning:</h2>" + $("#stag").clone().html());
    document.write("<hr />")
    document.write("<h2>Cloning(true):</h2>"  + $("#stag").clone(true).html());
    document.write("<hr />")
    document.write("<h2>Cloning(true, true):</h2>"  + $("#stag").clone(true, true).html());
    document.write("<hr />")
}
run();