The native document.createElement() is silly-stupid (it takes only a tag name and no attributes). How come I can\'t override it? How come this doesn\'t work?
document.createElement()
As far as I know you cannot override native methods for security reasons. For non-native methods it's no problem at all.