Anne van Kesteren

Internet Explorer and scripting

<!DOCTYPE html>
<form>
 <input name="id">
</form>
<script>
 alert(document.getElementsByTagName('form')[0].getAttribute('all')[0].nodeName);
</script>

As in Internet Explorer content attributes are apparently DOM attributes in some quirky way, the above returns BODY. Makes sense to me too.