Ok, I figured out by trial and error that SELECTED="selected" is wrong, but
selected="selected" is correct, but I still don't see a link anywhere to the
correct syntax.  I figure if a validator is going to say "that's wrong" they
ought to provide a link so you can find out what's right. 

Don't you think?

Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks
http://afpwebworks.com
.com,.net,.org domains from AUD$20/Year


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Kear
Sent: Tuesday, 26 October 2004 9:47 AM
To: [EMAIL PROTECTED]
Subject: [WSG] Select form element doesnt validate

I'm trying to validate a page,  and I'm getting this error.   

Line 183, column 28: the name and VI delimiter can be omitted from an
attribute specification only if SHORTTAG YES is specified

And also ..

Line 184, column 29: there is no attribute "SELECTED"

I have two problems with this .  

I tried to find what the syntax of this should be,   and couldn't find a
link anywhere to the actual syntax definition.  I don't know what a VI
Delimiter is, and looked for a definition.  I'd have thought that W3C would
have it somewhere linked to the validator, but not where I can see. 

And also I was sure that SELECTED="selected" was correct, but apparently
not.   Again I looked for the dinkum definition  but couldn't find it.
Anyone know where it is?

Here's the code for the offending form element involved:

<label for="Referredby">Referred By:</label><select id="Referredby"
name="Referredby" >
<option value="0" selected>Search Engine</option>
<option value="5" SELECTED = "Selected" >Heard about the site on the
radio</option>
<option  value="1" >Web Ring</option>
<option  value="2" >E-Mail</option>
<option  value="3" >Friend</option>
<option  value="4" >Just Surfed In</option>
</select>
        


Cheers
Mike Kear
AFP Webworks
Windsor, NSW, Australia
http://afpwebworks.com
.com, .net, .org etc domains start at A$20/year



******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to