Page 1 of 1

[53] The "for" attribute value for the "label" element must

PostPosted: Thu Mar 22, 2012 11:58 am
by bsabsa
Hi,
we get this message
[53] The "for" attribute value for the "label" element must begin with a letter (A-Z or a-z) and consist of the following characters: (A-Z), (a-z), (0-9), hyphens (-), underscores (_), colons (:), and periods (.). Note that spaces are not allowed.

validating this form field

<label for="cTForm[n]">Nazione</label><input type="text" name="cTForm[n]" value="" id="cTForm[n]" />

Do you have a clue ?

Bsa

Re: [53] The "for" attribute value for the "label" element m

PostPosted: Thu Mar 22, 2012 4:20 pm
by Albert Wiersch
Hello,

Try removing the square brackets from
Code: Select all
for="cTForm[n]"
so that it is
Code: Select all
for="cTFormn"
instead (or something similar without the invalid characters).

Although if you are using HTML5, then this (the square brackets) should be OK and it looks like a bug in CSE HTML Validator. I'll get this fixed in the next update.

Re: [53] The "for" attribute value for the "label" element m

PostPosted: Fri Mar 23, 2012 10:17 am
by Albert Wiersch
This was a bug in CSE HTML Validator when checking HTML5 documents (the check does not apply in HTML5). It should be fixed in v11.02. If you'd like to test a pre-release of 11.02, then please let me know. Thanks for the report.