Why do I need to do $(document.body) to extend document.body with Mootools Element methods?
问题 So after attempting to get my app working on the latest IE, it turns out IE doesn't like the following code: document.body.getElement('.className'); Firefox and Chrome responded okay, but document.body on IE had none of the Mootools Element methods. After looking at the documentation, some of the examples wrapped document.body in $() to expose it to the Mootools methods. Just wanted to know the reason why it works fine in FireFox/Chrome, but not automatically in IE? 回答1: This is because of