Parent Directory
|
Revision Log
added a link
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.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 |