Home | History | Annotate | Download | only in ManualTests
      1 <!DOCTYPE html>
      2 <html>
      3 <script>
      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;
     11             try { 
     12                 element.parentNode.removeChild(element)
     13             } catch(e) { }
     14         }
     15     }
     16 
     17     if (!didRemoveElement)
     18         document.documentElement.innerHTML = "PASS. WebKit didn't crash.";
     19 }, 100);
     20 </script>
     21 <style>
     22 #test1:after {
     23     float: left; 
     24     content: 'A';
     25 }
     26 </style>
     27 <svg>
     28 <text>
     29 <a id="test1">
     30 A
     31 </a>
     32 </text>
     33 </svg>
     34 </html>
     35