Today is a good day to code

IE 7 and appendChild

Posted: December 31st, 1969 | Author: | Filed under: Uncategorized | No Comments »

IE 7 and appendChild

Picture of IrvinI only have one item on my current IE 7 wish list. It is support for javascript's appendChild method. One can do many things with innerHTML, but it is just plain clunky for adjusting attributes, or building a tag in javascript and the putting it into the middle of your block level element.

I think that IE 7 so far is excellent. But that is one thing that the other browsers support that IE is still lacking. I am not quite sure what the motivation for not fully supporting the current ECMAScript standard is. I'd have to guess that it is just Microsoft being onery, and that they just don't want to be seen as fully caving in to being compliant. Or perhaps it is that marketing paradigm, differentiate and add value before copying your competitors. The problem is that as more and more people begin to trust firefox, camino, safari and opera, they will just stop using IE since sites work better with those browsers. Really the only way to make Microsoft comply is for developers to refuse to change or hack their code. If we all code to the standard and let the user know that something only looks funny in IE they will not use it. Most saavy consumers already are using more than one browser. They use IE for windows updates, and other Microsoft specific sites, then they use firefox or one of the other browsers as their main browser. If developers keep kowtowing to Microsoft, then we'll be stuck coding everything twice forever. Microsoft is not going to win the browser wars this time. To the consumer, there is nothing in IE 7 to make them switch from firefox or whatever else they are using. IE 7 sports *better* compliance with standards, and all of the me-to features. It doesn't make sense why the ECMAScript thing is their line in the sand. They said that ECMAScript, JScript, and JavaScript were all basically the same language. They are right, they are all “basically” the same language, but there are subtle differences that most if not all of the other browsers support such as manipulating the DOM through appendChild.