[thelist] DOM - adding a function to a dynamically addedelement...

Jeff Howden jeff at jeffhowden.com
Mon Apr 25 23:35:24 CDT 2005


Matt,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Matt Warden [mailto:mwarden at gmail.com]
>
> > This simply isn't true.  setAttribute() works just
> > fine in IE6+.
>
> Are you certain? From my testing, if one tries to set
> attributes like 'style' using setAttribute rather than
> the property method, it fails in IE6 (and lower, of
> course).
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

Ok, true enough.  It does not work properly with complex attributes like
"style" which is more of an object (internally) and less of an attribute and
event handlers which I suppose the pedants (myself included) would argue
aren't really attributes, but something else altogether.

Everything else does work fine from my experience.

Jeff
——————————————————————————————————————————————————————
Jeff Howden - Web Application Specialist
Résumé - http://jeffhowden.com/about/resume/
Code Library - http://evolt.jeffhowden.com/jeff/code/



More information about the thelist mailing list