Re: Re: sloppiness & stupidity
| From: | Michael A. Peters | Date: | Thu, 18 Jun 2009 00:07:13 +0000 |
| Subject: | Re: Re: sloppiness & stupidity | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-294198@lists.php.net to get a copy of this message | ||
Ford, Mike wrote:
On 17 June 2009 02:11, Shawn McKenzie advised:Any validator should validate against the declared DTD which should define the accepted values.PJ wrote:work,I'm sorry, guys, but I am really getting po'd. The irresponsible sloppiness and stupidity is just getting to me. In my quest for a way to populate a multiple option select box I have run across so many errors that it's beyond belief... such nonsense as "select for select or select="select" ( think this is right, but then who knows?)I know. So does the HTML recommendation which states that it is a boolean attribute, meaning it is stated (on/boolean 1) or it isn't (off/boolean 0) in the HTML context. So while other variations maythis is correct: For multiple select: <SELECT multiple name="component-select"> --or-- For single select: <SELECT name="component-select">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.