DISABLED

E

Eustace

When checking my webpage with JSLint, I get this kind of error:

================
Problem at line 242 character 73: Expected '=' and instead saw '>'.

NAME="firstDayOfWeek" VALUE="" SIZE=2 MAXLENGTH=2 DISABLED></td>
================

But if I make it DISABLED=true to please JSLint, then the W3C Markup
Validation Service finds it wrong and prefers it the other way. Is there
any way acceptable to both JSLint and to the W3C Valicator?

Thanks,

Eustace
 
M

Martin Honnen

Eustace said:
When checking my webpage with JSLint, I get this kind of error:

================
Problem at line 242 character 73: Expected '=' and instead saw '>'.

NAME="firstDayOfWeek" VALUE="" SIZE=2 MAXLENGTH=2 DISABLED></td>
================

But if I make it DISABLED=true to please JSLint, then the W3C Markup
Validation Service finds it wrong and prefers it the other way. Is there
any way acceptable to both JSLint and to the W3C Valicator?

You can use
DISABLED="DISABLED"
although with HTML 4 the short form
DISABLED
is fine.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top