Results 1 to 9 of 9
  1. #1

    XHTML 1.0 Strict and Javascripts

    Hey guys,

    I've recently started writing XHTML strict pages, but I can't seem to figure out what to do about JS. Is it not allowed in XHTML 1.0? I'm getting the following error when I try to verify:

    Line 15, column 41: there is no attribute "language"

    ...ript type="text/javascript" language="javascript" src="modules/javascript/fun

    I am obviously trying to include a javascript functions file into my site. Can anyone tell me how to properly right this? I hate having one error that I can't fix

    Let me know,
    Jon Marus
    Coding my way to oblivion.

  2. #2
    Join Date
    Apr 2003
    Location
    Sunny UK
    Posts
    33
    Just remove the "language" attribute. All you need is type="text/javascript" (and the src attribute if you're using that).

  3. #3
    And that won't affect the javascript useability?
    Coding my way to oblivion.

  4. #4
    Join Date
    Apr 2003
    Location
    Sunny UK
    Posts
    33
    Nope, not at all. Take it out and see if your Javascript still works if you don't believe me.

  5. #5
    I do believe you. And it works, and a little more research revealed that the language attribute is depreciated. Thanks for your help
    Coding my way to oblivion.

  6. #6
    Join Date
    Jun 2004
    Location
    Bay Area -USA
    Posts
    1,738
    lol jon and jon - are you two related? jk
    <<< Please see Forum Guidelines for signature setup. >>>

  7. #7
    haha, I didn't even notice that. And damn, he joined before me too.
    Coding my way to oblivion.

  8. #8
    Join Date
    Apr 2003
    Location
    Sunny UK
    Posts
    33
    Hehe. Wierd stuff. I got the coolest number though :p

  9. #9
    I guess, if we were in elementary school still
    Coding my way to oblivion.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •