4 function print(message
, color
)
6 var paragraph
= document
.createElement("div");
7 paragraph
.appendChild(document
.createTextNode(message
));
8 paragraph
.style
.fontFamily
= "monospace";
10 paragraph
.style
.color
= color
;
11 document
.getElementById("console").appendChild(paragraph
);
16 if (window
.testRunner
)
17 testRunner
.dumpAsText();
20 document
.importNode(null);
22 print("caught exception: " + e
);
24 print("PASS: importNode(null) didn't crash", "green");
29 <body onload=
"test();">
30 <p>This page tests calling document.importNode(null). If it passes, you'll
31 see a
"PASS" message below.
</p>
33 <div id='console'
></div>