appendChild is not a Function
Thursday, April 27th, 2006Another day another rant. Now it is time for me ranting how bad IE DOM/COM objects and ActiveX objects integrate with JScript.
Given:
var f = document.body.appendChild;
f.call(document.body, document.createTextNode(’Huh?’));
This throws an exception because DOM/COM methods are not really instance of Function. Why is this an issue you might ask? Assume we have an ActiveX object that takes variable [...]