DISABLED

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eustace

    DISABLED

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

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

    NAME="firstDayO fWeek" 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

    --
    Date Calculator with all-purpose JS code
    Latest news coverage, email, free stock quotes, live scores and video are just the beginning. Discover more every day at Yahoo!

  • Martin Honnen

    #2
    Re: DISABLED

    Eustace wrote:
    When checking my webpage with JSLint, I get this kind of error:
    >
    =============== =
    Problem at line 242 character 73: Expected '=' and instead saw '>'.
    >
    NAME="firstDayO fWeek" 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="DISAB LED"
    although with HTML 4 the short form
    DISABLED
    is fine.


    --

    Martin Honnen

    Comment

    Working...