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