clone test
git-svn-id: svn://10.0.0.236/trunk@17787 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
26
mozilla/dom/tests/js/clone.html
Normal file
26
mozilla/dom/tests/js/clone.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<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>
|
||||
BIN
mozilla/dom/tests/js/flamer.gif
Normal file
BIN
mozilla/dom/tests/js/flamer.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Reference in New Issue
Block a user