1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/tests/js/clone.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,26 @@ 1.4 +<HTML> 1.5 +<HEAD> 1.6 +<TITLE>Clone test</TITLE> 1.7 +<SCRIPT> 1.8 +function clonePara() 1.9 +{ 1.10 + var p = document.getElementsByTagName("P")[0]; 1.11 + var newp = p.cloneNode(true); 1.12 + 1.13 + document.body.appendChild(newp); 1.14 +} 1.15 +</SCRIPT> 1.16 +</HEAD> 1.17 +<BODY> 1.18 +<H1>Clone test</H1> 1.19 + 1.20 +<P>If you press the button <B>below</B>, this paragraph and the 1.21 +image <IMG SRC="flamer.gif"> will be <FONT SIZE=+3>cloned</FONT>. 1.22 +If you see an <I>exact</I> copy of this paragraph, the test 1.23 +succeeded.</P> 1.24 + 1.25 +<FORM> 1.26 +<INPUT TYPE="button" NAME="clone" VALUE="Clone" onClick="clonePara();"> 1.27 +</FORM> 1.28 +</BODY> 1.29 +</HTML> 1.30 \ No newline at end of file