Sam Marshall <S.Marshall@open.ac.uk> wrote:

> Just one thing about setAttribute for DHTML stuff: sometimes (probably
> depends on the property in question) it doesn't work on IE/PC. In those
> cases you just have to use the dot syntax (item.style.whatever)

This happens when the name of the attribute is not the same as the name
of the property. IE/Win seems to implement get/setAttribute as simply
doing the same as the dot notation, so for example:

  el.className
    works
  el.getAttribute('className')
    works, but shouldn't
  el.getAttribute('class')
    doesn't work, but should

The same goes for eg. <label for> (htmlFor) and probably a few others.
and@doxdesk.com