SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2004
    Location
    London
    Posts
    145
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question XHTML 1.0 Strict - "does not allow <script> here"

    Hey guys,

    Launched this website yesterday:

    http://www.whiteapp.com

    Trying to get it to validate at the moment. 2 errors. I've trawled the net looking for a solution, to no avail.

    The error is this:
    Line 126, Column 31: document type does not allow element "script" here (x2)

    The code is:
    Code:
    <link href="http://www.whiteapp.com/css/screen.css" type="text/css" rel="stylesheet" media="screen" />
    <link rel="stylesheet" href="http://www.whiteapp.com/css/lightbox.css" type="text/css" media="screen" />
    <script type="text/javascript" src="http://www.whiteapp.com/js/prototype.js">
    </script>
    <script type="text/javascript" src="http://www.whiteapp.com/js/scriptaculous.js?load=effects,builder">
    </script>
    <script type="text/javascript" src="http://www.whiteapp.com/js/lightbox.js">
    </script>
    <title>whiteapp.com - white labelled mobile applications for iPhone, Android, Blackberry, Symbian, Nokia Ovi..</title>
    </head>
    I've found several references to using CDATA, though all of them seem to relate to inline javascript. I'm using lightbox on the site, and calling the JS files externally.

    The solution provided by "Tiny" doesn't work either, I've tried.

    Anyone aware of a solution? I'm so close!

    Much appreciated,

    Carl

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's the two <script> tags that you have after the </body> tag. The only thing that can follow </body> is a </html> tag.

    The error message clearly states that the error occurs on line 126, so the bit of <head> code you posted has nothing to do with it.
    Birnam wood is come to Dunsinane

  3. #3
    SitePoint Zealot
    Join Date
    Jul 2004
    Location
    London
    Posts
    145
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Whoopsie.. Oversight!

    *thank you* for that.

    Carl


Tags for this Thread

Bookmarks

Posting Permissions

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