[thelist] Workaround for setAttribute bug in IE7?

Edwin Martin edwin at bitstorm.org
Thu Dec 14 07:49:12 CST 2006

Matt Warden wrote:
> Try to make this simple:
> Clearly an operation manipulating the DOM:
> input.setAttribute('size', 5);
> Clearly an assignment to an object property:
> input.size = 5;
But since all modern browsers bind the properties to the DOM, what is 
the difference?

Here is a list of all bindings:
> Aside from my entire argument, you can do a simple google search to
> see how often this issue trips up developers.
I haven't noticed any problems since IE6.

Edwin Martin

More information about the thelist mailing list