Re: Re: sloppiness & stupidity
| From: | Robert Cummings | Date: | Thu, 18 Jun 2009 02:03:35 +0000 |
| Subject: | Re: Re: sloppiness & stupidity | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-294207@lists.php.net to get a copy of this message | ||
Michael A. Peters wrote:
Robert Cummings wrote:I didn't say it didn't work, I said it's not more specific to use an uppercase value that's supposed to be equal to the attribute name itself... which in turn should be lowercase according to XHTML. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHPI always do lower case and it validates (both as html 4.01 and xhtml 1.1) but only the element and attribute names must be lower case. attribute values do not need to be lower case. Maybe they do in this case, I haven't tried validating selected="SELECTED" - but in general, the case sensitive nature only applies because the DTD is case sensitive and upper case element/attribute names are not defined in the DTD.Ash: As I understand it and is my experience, that is true -- a stand-alone HTML attribute should be equal to itself, such as selected="selected", or more specifically selected="SELECTED".How is that MORE specific? XHTML is like a cross-section of XML and HTML. It is case sensitive, so using an uppercase value in this context is LESS specific.