dom/tests/js/clone.html
author axel@pike.org
Mon, 11 Jun 2007 08:56:41 -0700
changeset 2271 f24877cf9a5a5b0209760706b8d013d1c3bebab5
parent 1 9b2a99adc05e53cd4010de512f50118594756650
permissions -rw-r--r--
bug 383463, --disable-compile-environment checks too much, r=bsmedberg

<HTML>
<HEAD>
<TITLE>Clone test</TITLE>
<SCRIPT>
function clonePara()
{
  var p = document.getElementsByTagName("P")[0];
  var newp = p.cloneNode(true);
  
  document.body.appendChild(newp);
}
</SCRIPT>
</HEAD>
<BODY>
<H1>Clone test</H1>

<P>If you press the button <B>below</B>, this paragraph and the
image <IMG SRC="flamer.gif"> will be <FONT SIZE=+3>cloned</FONT>.
If you see an <I>exact</I> copy of this paragraph, the test
succeeded.</P>

<FORM>
<INPUT TYPE="button" NAME="clone" VALUE="Clone" onClick="clonePara();">
</FORM>
</BODY>
</HTML>