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

For technical support for all editions of CSE HTML Validator. Includes bug reports.

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

Postby bsabsa » Thu Mar 22, 2012 11:58 am

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
bsabsa
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 3
Joined: Fri Feb 24, 2012 6:54 am

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

Postby Albert Wiersch » Thu Mar 22, 2012 4:20 pm

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.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

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

Postby Albert Wiersch » Fri Mar 23, 2012 10:17 am

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.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to CSE Tech Support

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron