/[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.2 - (hide annotations) (download) (as text)
Sun Apr 17 08:19:39 2011 UTC (14 years ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
File MIME type: text/html
added a link

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 wakaba 1.2 result.className = 'PASS';
14 wakaba 1.1 } else {
15     result.firstChild.data = 'FAIL (' + div.parentNode + ')';
16     }
17     </script>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24