/[suikacvs]/www/test/dom/node/child-methods/removechild-parentnode-1.html
Suika

Contents of /www/test/dom/node/child-methods/removechild-parentnode-1.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download) (as text)
Thu Dec 30 13:56:24 2010 UTC (14 years, 6 months ago) by wakaba
Branch: MAIN
File MIME type: text/html
New test

1 wakaba 1.1 <!DOCTYPE html>
2     <title>removeChild then parentNode</title>
3     <p id=result class=FAIL>FAIL (noscript)</p>
4     <script>
5     var result = document.getElementById ('result');
6    
7     var div = document.createElement ('div');
8     document.body.appendChild (div);
9     document.body.removeChild (div);
10    
11     if (div.parentNode === null) {
12     result.firstChild.data = 'PASS';
13     result.firstChild.className = 'PASS';
14     } else {
15     result.firstChild.data = 'FAIL (' + div.parentNode + ')';
16     }
17     </script>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24