DISABLED

Discussion in 'Javascript' started by Eustace, Feb 24, 2008.

  1. Eustace

    Eustace Guest

    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

    --
    Date Calculator with all-purpose JS code
    http://www.geocities.com/emfrilingos/js/datecalc.html
     
    Eustace, Feb 24, 2008
    #1
    1. Advertising

  2. 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="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.


    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Feb 24, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ami Schreiber
    Replies:
    1
    Views:
    684
    Dino Chiesa [Microsoft]
    Nov 24, 2003
  2. =?Utf-8?B?c3VuaWwgcGhpbGlw?=

    Check javascript disabled

    =?Utf-8?B?c3VuaWwgcGhpbGlw?=, Mar 14, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    8,626
    balexandre
    Oct 4, 2007
  3. David
    Replies:
    2
    Views:
    343
    Natty Gur
    Jul 31, 2003
  4. Stu Carter
    Replies:
    6
    Views:
    8,324
    Punisher
    Aug 14, 2003
  5. Leo Duran
    Replies:
    0
    Views:
    898
    Leo Duran
    Aug 6, 2003
Loading...

Share This Page