4 setInterval(function(){
5 var elements
= document
.getElementsByTagName("*");
6 var didRemoveElement
= false;
7 for (var i
= 0; i
< elements
.length
; i
++) {
8 var element
= elements
.item(i
);
9 if (!element
.firstElementChild
&& element
!= document
.documentElement
) {
10 didRemoveElement
= true;
12 element
.parentNode
.removeChild(element
)
17 if (!didRemoveElement
)
18 document
.documentElement
.innerHTML
= "PASS. WebKit didn't crash.";