/[suikacvs]/www/test/dom/document-fragment/insertbefore-df-2.html
Suika

Contents of /www/test/dom/document-fragment/insertbefore-df-2.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Thu Mar 9 05:35:33 2006 UTC (19 years, 2 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/html
New tests

1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <title>DocumentFragment1.insertBefore (DocumentFragment1,
5 DocumentFragment1.firstChild)</title>
6 <script src="../dumptree.js" type="text/javascript"></script>
7 </head>
8 <body>
9 <h1><code><var>DocumentFragment1</var>.insertBefore
10 (<var>DocumentFragment1</var>,
11 <var>DocumentFragment1</var>.firstChild)</code></h1>
12
13 <div id="test-result"></div>
14
15 <script type="text/javascript" id="test-code">
16 dumptree (function () {
17 var df = document.createDocumentFragment ();
18 df.appendChild (document.createTextNode ('text1'));
19 df.appendChild (document.createElement ('element1'))
20 .appendChild (document.createTextNode ('text1.1'));
21 df.appendChild (document.createTextNode ('text2'));
22 df.insertBefore (df, df.firstChild);
23 return df;
24 });
25 </script>
26
27 </body>
28 </html>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24