I've just tested both selected and checked in Mozilla Firefox 0.9.1,
IE6, and Opera 7.53 all in WinXP and Mozilla Firefox 0.8 and Konqueror
3.2.2 in Linux/XFree86. Either way seems to work with these browsers.
Are there specific browsers/versions with which this doesn't work, that
we should look out for? I remember the classic 4.0 browsers probably
used only checked. I did a brief search and see ".checked" is
predominantly referenced over ".selected", and ".checked" is listed in
the classic Netscape's old (pre-DOM?) ClientReferenceJS13. Incidentally
the getState method had ".checked", so I'll go ahead and use that for
setState.
Leif
----- Original Message -----
From: "Andrew Gillett" <an...@zo...>
To: <dyn...@li...>
Sent: Thursday, July 29, 2004 10:05 PM
Subject: [Dynapi-Dev] Another small bug in htmlradiobutton.js
> Hi,
>
> The setState() function in HTMLRadioButton doesn't work (on any
browser).
> The reason is a typo on line 79 of htmlradiobutton.js :
>
> if(this.getElm()) this.elm.selected=this._state;
>
> should read:
>
> if(this.getElm()) this.elm.checked=this._state;
>
> - there is no such attribute as "selected" in a radio button.
>
>
>
> Andrew.
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by OSTG. Have you noticed the changes
on
> Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
> one more big change to announce. We are now OSTG- Open Source
Technology
> Group. Come see the changes on the new OSTG site. www.ostg.com
> _______________________________________________
> Dynapi-Dev mailing list
> Dyn...@li...
> http://www.mail-archive.com/dyn...@li.../
>
>
|