Should a "script" tag be allowed to remove itself?
- by Nischal
We've been having a discussion at our workplace on this with some for and some against the behavior. Wanted to hear views from you guys :
<html>
<body>
<div>
Test!
<script> document.body.removeChild(document.getElementsByTagName('div')[0]); </script>
</div>
</body>
</html>
Should the above script…