Skip to main content

Bug Tracker

Side navigation

Ticket #4814: test.html
File test.html, 1.4 KB (added by Tim, June 24, 2009 08:09AM UTC)

Test case

<html>
	<head>
		<script src="jquery-1.3.2.js" type="text/javascript"></script>
		<script>
		var cnt = 0, _start;
		function run() {
			var outer = document.getElementById('outer');			
			var html  = '<div id="inner"><div id="t' + (cnt++) + '"><div><table><tbody id="test' + (cnt) + '"><tr id="test_' + (cnt) + '"><td id="tt' + (cnt++) + '"><div><span>' + (cnt) + '</span></div></td><td><div><span>' + (cnt) + '</span></div></td><td><div><span>' + (cnt) + '</span></div></td><td><div><span>' + (cnt) + '</span></div></td><td id="ttt' + (cnt++) + '"><div><span>' + (cnt) + '</span></div></td><td><div><span>' + (cnt) + '</span></div></td><td id="ta' + (cnt++) + '"><div><span>' + (cnt) + '</span></div></td><td><div><span>' + (cnt) + '</span></div></td><td><div><span>' + (cnt) + '</span></div></td><td><div><span>' + (cnt) + '</span></div></td><td><div><span>' + (cnt) + '</span></div></td><td><div><span>' + (cnt) + '</span></div></td></tr></tbody></table></div>';
			$(outer).html(html);
		}
		function start() {
			if (_start) return;
			_start = setInterval(function() {
			run();
			}, 10);
		}
		function stop() {
			if (_start) {
				clearInterval(_start);
				_start = null;
			}
		}
		</script>
	</head>
	<body>
		<div id="outer">IE Memory Leak</div>
		<button onclick="start();">Start</button>
		<button onclick="stop();">Stop</button>
</body>
</html>

Download in other formats:

Original Format