blob: 510435df85a931f0121d933c4eea4471e84703ca [file] [log] [blame]
<p>Test for (rdar://problem/5725058). If you see this text, then all is well and no crash has occurred.</p>
<span>
<div name='test'></div>
</span>
<script type='text/javascript'>
if (window.testRunner)
testRunner.dumpAsText();
function triggerGarbageCollection()
{
if (window.GCController) {
GCController.collect();
return;
}
for (var i = 0; i < 10000; ++i)
({})
}
document.getElementsByName('test')[0];
triggerGarbageCollection();
document.getElementsByTagName('span')[0].innerHTML = '';
triggerGarbageCollection();
document.getElementsByName('test')[0];
</script>