Re: Weird browser bug (I think)
| From: | Kevin Stone | Date: | Thu, 15 May 2003 18:20:26 +0000 |
| Subject: | Re: Weird browser bug (I think) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147756@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: <jlx@commandprompt.com>
To: "PHP Lists" <php-general@lists.php.net>
Sent: Thursday, May 15, 2003 12:01 PM
Subject: Re: [PHP] Weird browser bug (I think)
> On Thu, 15 May 2003, Kevin Stone wrote:
> >><option value="500" selected="selected">500</option>
> >The proper HTML syntax looks like this..
> ><option value="" SELECTED></option>
>
> This is actually not quite accurate. This is the old way of selecting an
> option; as of XHTML 1.0 valueless attributes are no longer valid, so while
> the old form still is respected by most browsers, it is appropriate to use
> selected="selected" and checked="checked" if one is coding to the more
> recent spec.
>
> Regardless, if that were the problem, the first value would be selected by
> default, not the last. The problem I suspect is Mozilla's tendency to
> ignore first-load defaults on refresh and choosing to go with previously
> selected values, which it is known to do.
>
> Best wishes,
> Jw.
Wow what boneheaded syntax will they come up with next. So in that case
selected="false" and checked="off" would evaluate to true. Would they not?
- Kevin