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>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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>