Ricardo Santos - 2007-08-29

Anyone know why an FORM element leaks more memory than other elements (like DIV, SPAN) ?

Here is an example:

<html>
<body>
<script>
for( var x = 0; x <= 10000; x++ ) {
      var a = document.createElement('form');
      var b = document.body.appendChild(a);
      document.body.removeChild(b);
}
</script>
</body>
</html>