OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 <script> | 4 <script> |
5 function runTest() | 5 function runTest() |
6 { | 6 { |
7 var targetDetails = document.getElementById("targetDetails"); | 7 var targetDetails = document.getElementById("targetDetails"); |
8 var clonedDetails = targetDetails.cloneNode(true); | 8 var clonedDetails = targetDetails.cloneNode(true); |
9 document.body.appendChild(clonedDetails); | 9 document.body.appendChild(clonedDetails); |
10 var targetSummary = document.getElementById("targetSummary"); | 10 var targetSummary = document.getElementById("targetSummary"); |
(...skipping 12 matching lines...) Expand all Loading... |
23 } | 23 } |
24 </script> | 24 </script> |
25 <body onload="runTest()"> | 25 <body onload="runTest()"> |
26 <p id="description">Test to clone details and summary elements</p> | 26 <p id="description">Test to clone details and summary elements</p> |
27 <div id="console"></div> | 27 <div id="console"></div> |
28 <details id="targetDetails" open> | 28 <details id="targetDetails" open> |
29 <summary id="targetSummary"></summary> | 29 <summary id="targetSummary"></summary> |
30 </details> | 30 </details> |
31 </body> | 31 </body> |
32 </html> | 32 </html> |
OLD | NEW |