Click to See Complete Forum and Search --> : Don't understand the xhtml validator...


turb
05-13-2004, 10:08 AM
Hi!

I've got 4 errors that i can't understand. Maybe someone could help me:


Line 122, column 11: there is no attribute "name"
<form name="sub" method="post" action="mailer.php?lang=fr" onsubmit="return chec
Line 148, column 16: the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified
<option selected>[ Série Élite ]</option>
Line 181, column 8: end tag for "select" which is not finished
</select>
Line 185, column 16: the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified
<option selected>[ Sélectionner ]</option>

TheBearMay
05-13-2004, 10:24 AM
Without seeing the code in question, kind of hard to comment; although, I believe the "name" attribute has been deprecated in most, if not all, instances in favor of "id". I'll need to check, but I also believe that the "selected" attribute needs to be set to "selected" vs. just being referenced in the option statement; i.e. <option selected="selected">Text</option>

Robert Wellock
05-13-2004, 11:24 AM
It would have helped if it were a question about accessibility, again we need a link to the page but TheBearMay seems to be talking sense and I'd probably agree since all XML documents use id over name.


Moveover Joe Clark and Jakob Neilson;
TOOLman: The New Face Of Accessibility ;)