dynamic-remove-single-summary.html 620 B

1234567891011121314151617181920212223
  1. <!DOCTYPE html>
  2. <!-- Any copyright is dedicated to the Public Domain.
  3. - http://creativecommons.org/publicdomain/zero/1.0/ -->
  4. <html class="reftest-wait">
  5. <script>
  6. function runTest() {
  7. // Remove <summary> from <details>.
  8. var details = document.getElementById("details");
  9. var summary = document.getElementById("summary");
  10. details.removeChild(summary);
  11. document.documentElement.removeAttribute("class");
  12. }
  13. </script>
  14. <body onload="runTest();">
  15. <details open id="details">
  16. <summary id="summary">Summary</summary>
  17. <p>This is the details.</p>
  18. </details>
  19. </body>
  20. </html>