Re: Weird browser bug (I think)

From: Date: Thu, 15 May 2003 18:01:29 +0000
Subject: Re: Weird browser bug (I think)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-147755@lists.php.net to get a copy of this message
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. -- John C Worsley | Lead Programmer / Web Developer, Command Prompt, Inc. (503) 222-2783 | jlx@commandprompt.com | webmaster@thelinuxreview.com TheLinuxReview | News for Linux Users | http://www.thelinuxreview.com

« previous php.general (#147755) next »