/[suikacvs]/www/test/dom/node/child-methods/appendchild-script-2.html
Suika

Contents of /www/test/dom/node/child-methods/appendchild-script-2.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Tue Sep 27 14:31:03 2011 UTC (13 years, 7 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/html
New

1 <!DOCTYPE HTML>
2 <title>appendChild (<script>)</title>
3
4 <p id=result class=FAIL>FAIL (noscript)</p>
5
6 <script>
7 var result = document.getElementById ('result');
8 result.firstChild.data = 'FAIL (error)';
9
10 var el = document.createElement ('div');
11 var el2 = document.createElement ('script');
12 el2.text = 'window.testValue1 = 1';
13 el.appendChild (el2);
14 // document.body.appendChild (el);
15 </script>
16
17 <script>
18 if (window.testValue1) {
19 result.firstChild.data = 'FAIL';
20 } else {
21 result.firstChild.data = 'PASS';
22 result.className = 'PASS';
23 }
24 </script>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24