Programmatic DOM Node Manipulation on IE
January 2, 2008 – 7:01 am by coachweiProgrammatic DOM node manipulation is actually not straightforward, given that Internet Explorer has so many unique DOM behaviors. I ran into quite a few issues recently when I was playing with Dojo Toolkit . I didn’t find a thorough answer to my questions when going through Dojo source code (Pardon my ignorance here. I am very sure that Dojo folks have run into these issues before and have solved them. It is just my stupidity of not being able to find the answers via source code reading). Further, I was surprised that I couldn’t find a lot of information about this on the web either. Hence this blog entry is created as a note to whoever is interested in programmatic DOM on Internet Explorer. Let’s take a really simple example. Let’s say that you want to programmatically create an HTML DOM node, and programmatically set its attributes. The value of these ...more »