i was wondering if the following code would cause some problems like memory leak
<html>
<head>
<script type='text/javascript' src='jquery-1.4.2.js'> </script>
<script type="text/javascript">
function a(){
for(var i = 0; i < 50000; i++){
$("#d").html("<span>" + i + "</span>");
}
}
</script>
</head>
<body onload='a();'>
<div id="d"></div>
</body>