dynamic-text-1a.html 459 B

1234567891011121314151617181920212223
  1. <!DOCTYPE html>
  2. <html class="reftest-wait">
  3. <head>
  4. <body style="white-space:pre"> 00
  5. BC
  6. FG
  7. JK
  8. <script>
  9. document.body.offsetTop;
  10. var t = document.body.firstChild;
  11. var sel = window.getSelection();
  12. sel.collapse(t, 11);
  13. sel.extend(t, 13);
  14. function doTest() {
  15. t.replaceData(0, 5, '');
  16. document.documentElement.removeAttribute('class');
  17. }
  18. document.addEventListener("MozReftestInvalidate", doTest, false);
  19. </script>
  20. </body>
  21. </html>