Re: Re: sloppiness & stupidity

From: Date: Wed, 17 Jun 2009 23:29:38 +0000
Subject: Re: Re: sloppiness & stupidity
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-294195@lists.php.net to get a copy of this message
I don't know what validator you're using, but according to http://validator.w3.org/ (as official as it gets) the following fragment is correct in HTML 4.01, HTML 5, XHTML 1.0 Strict, and XHTML 1.1: <select> <option selected="selected">test</option> </select> Thus sayeth the W3C, so let it be written, so let it be done. Go read a tutorial on the transition to XHTML as well as XML. 2009/6/17 PJ <af.gourmet@videotron.ca>: > Nisse Engström wrote: >> On Wed, 17 Jun 2009 10:18:09 +0100, "Ford, Mike" wrote: >> >> >>> This is very true -- but XHTML requires *all* attributes to have a >>> value, so an XHTML conformant page will use <select multiple="multiple" >>> name="selector"> (or something similar such as <select >>> multiple="yes" >>> name="selector">). The only inconsistency here is that different people >>> have chosen to validate against different standards. >>> >> >> The multiple attribute only has one value: "multiple", so >> it has to be <select multiple="multiple">. I don't think >> "yes" cuts the mustard. In HTML, you can shorten it to >> <select multiple>. >> > From my limited experience, and vast reading of those glorious 20,000 > entries on the Internet, multiple does not take a parameter. I had my > fingers slapped once when I validated or something - multiple is just > plain multiple ! :-P ;-) :-) > > -- > Hervé Kempf: "Pour sauver la planète, sortez du capitalisme." > ------------------------------------------------------------- > Phil Jourdan --- pj@ptahhotep.com >   http://www.ptahhotep.com >   http://www.chiccantine.com/andypantry.php > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#294195) next »