Re: [WSG] setAttribute not working on Firefox

2005-02-21 Thread Bert Doorn
G'day
is there anything wonky with .setAttribute, sometimes not working in
Firefox? 
According to the www.QuirksMode.org compatibility tables, 
attribute manipulation is a ... mess across browsers.

It says however that Mozilla 1.75 supports SetAttribute0. 
Firefox 1.0 uses the Mozilla 1.75 engine so it should work.

windowdiv.setAttribute(className,wclass);
windowdiv.setAttribute(id,name);
the classname is not being set
any suggestions?
Have you tried class instead of className?
Regards
--
Bert Doorn, Better Web Design
http://www.betterwebdesign.com.au/
Fast-loading, user-friendly websites
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**


Re: [WSG] setAttribute not working on Firefox

2005-02-21 Thread Kornel Lesinski
On Mon, 21 Feb 2005 16:29:02 +1000, Barry Beattie [EMAIL PROTECTED]  
wrote:

windowdiv.setAttribute(className,wclass);
the classname is not being set
windowdiv.className=wclass; works for me.
--
regards, Kornel Lesiski
**
The discussion list for  http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**