If you add a class name with a leading space to an element that doesn't yet have a class name, Mozilla ignores the leading space.
x.className += ' over';
This can be a problem if you use a regexp to remove the class name, including the space. The regexp doesn't work in Mozilla.
x.className = x.className.replace(/ over/,'');
Test page. Workaround is not included.
Reported by ppk.
Mozilla | Reported on 13 September 2005.
This site is no longer maintained. I’m sorry, but it’s just too much work for too little return. You can continue to browse old bug reports, though.
Search reports by browser:
(Add your own)