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.
HTML
<!--
Note this version also runs correctly in IE7 under rev 2 in edge,
but not under 1.7.1.
-->
<script id="stag" type="text/html">
<div>hello world</div>
</script>
<div id="log"></div>
JavaScript
function run() {
$("#log").append("<h2>No cloning:</h2>" + $("#stag").html());
$("#log").append("<hr />")
$("#log").append("<h2>Cloning:</h2>" + $("#stag").clone().html());
$("#log").append("<hr />")
$("#log").append("<h2>Cloning(true):</h2>" + $("#stag").clone(true).html());
$("#log").append("<hr />")
$("#log").append("<h2>Cloning(true, true):</h2>" + $("#stag").clone(true, true).html());
$("#log").append("<hr />")
}
run();