Home | History | Annotate | Download | only in NodeList
      1 <p>Test for (rdar://problem/5725058). If you see this text, then all is well and no crash has occurred.</p>
      2 
      3 <span>
      4     <div name='test'></div>
      5 </span>
      6 <script type='text/javascript'>
      7     if (window.layoutTestController)
      8         layoutTestController.dumpAsText();
      9 
     10     function triggerGarbageCollection()
     11     {
     12         if (window.GCController) {
     13             GCController.collect();
     14             return;
     15         }
     16         for (var i = 0; i < 10000; ++i)
     17             ({})
     18     }
     19 
     20     document.getElementsByName('test')[0];
     21     triggerGarbageCollection();
     22     document.getElementsByTagName('span')[0].innerHTML = '';
     23     triggerGarbageCollection();
     24     document.getElementsByName('test')[0];
     25 </script>
     26