2 <!-- Any copyright is dedicated to the Public Domain.
3 - http://creativecommons.org/publicdomain/zero/1.0/ -->
5 <html class=
"reftest-wait">
8 // Append <summary> and <p> into <details>.
9 var summary
= document
.createElement("summary");
10 var summary_text
= document
.createTextNode("Summary");
11 summary
.appendChild(summary_text
);
13 var paragraph
= document
.createElement("p");
14 var details_text
= document
.createTextNode("This is the details.");
15 paragraph
.appendChild(details_text
);
17 var details
= document
.getElementById("details");
18 details
.appendChild(summary
);
19 details
.appendChild(paragraph
);
21 document
.documentElement
.removeAttribute("class");
24 <body onload=
"runTest();">
25 <details open
id=
"details">