Merge mozilla-central to autoland. a=merge CLOSED TREE
[gecko.git] / layout / reftests / details-summary / dynamic-add-first-summary.html
blobd7d67c46cfbb66fd50cb2f49ac7804243beac6ea
1 <!DOCTYPE html>
2 <!-- Any copyright is dedicated to the Public Domain.
3 - http://creativecommons.org/publicdomain/zero/1.0/ -->
5 <html class="reftest-wait">
6 <script>
7 function runTest() {
8 // Insert a <summary> as the first child of the <details>.
9 var summary = document.createElement("summary");
10 var text = document.createTextNode("Summary");
11 summary.appendChild(text);
13 var details = document.getElementById("details");
14 details.insertBefore(summary, details.children[0]);
16 document.documentElement.removeAttribute("class");
18 </script>
19 <body onload="runTest();">
20 <details open id="details">
21 <summary>Second Summary</summary>
22 <p>This is the details.</p>
23 </details>
24 </body>
25 </html>