In IE6, elements that are dynamically created will not be styled if the class is set with setAttribute. The member variable className has to be used. This illustrates that. Interestingly, if you look at the last div in Mozilla (1.7), it reports both the get and the variable as grooved, but the styling is bordered.

Static div