W3C home > Mailing lists > Public > www-validator@w3.org > February 2003

Re: Not XHTML! How Do I make it so?

From: Dominique HazaŽl-Massieux <dom@w3.org>
Date: 11 Feb 2003 16:31:31 +0100
To: "Short, Christopher B. " SrA <christopher.short@jcs1.jcse.mil>
Cc: "'www-validator@w3.org'" <www-validator@w3.org>
Message-Id: <1044977503.1957.165.camel@stratustier>
Le mar 11/02/2003 ŗ 16:20, Short, Christopher B. SrA a ťcrit :
> <input type="radio" name="sitesearch" value="" checked />
> The checked component makes for a non-XHTML compliant web page according to
> W3C's Validator.  I've done quite a bit of research and have found nothing
> to make sense of it.  Putting it in quotes does no good either.  You can see
> the page of the code at http://www.shortfamilyonline.com/links/ 

http://www.w3.org/TR/xhtml1/#h-4.5 says
"XML does not support attribute minimization. Attribute-value pairs must
be written in full. Attribute names such as compact and checked cannot
occur in elements without their value being specified."

So the correct code would be:
<input type="radio" name="sitesearch" value="" checked="checked" />

Hope this helps,

Dominique HazaŽl-Massieux - http://www.w3.org/People/Dom/

Received on Tuesday, 11 February 2003 10:34:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:32 UTC