SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot Koobi's Avatar
    Join Date
    Nov 2003
    Location
    Sri Lanka
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Validation error with the <noscript> tag

    Can someone please guide me in correcting the validation error for the noscript tag?

    In case you don't feel like clicking on that link, here's the code snippet that's in question: (XHTML Strict 1.0 by the way)
    Code:
      //some JavaScript here
      </script>
      <noscript>You need to enable JavaScript for this page to work properly</noscript>
    The error points at the first Y following the open noscript tag and gives this message:
    character data is not allowed here
    I don't uderstand this.....someone suggested to me to "write" out the contents of the noscript tags from JavaScript but that doesn't really fix the problem, it just hides it. What am I doing wrong?

    Thanks for your time
    - Bane

  2. #2
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    change it to
    Code:
    <noscript><p>You need to enable JavaScript for this page to work properly</p></noscript>
    someone suggested to me to "write" out the contents of the noscript tags from JavaScript
    ah...that one made me laugh REAL hard...
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com

  3. #3
    SitePoint Zealot Koobi's Avatar
    Join Date
    Nov 2003
    Location
    Sri Lanka
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. It worked like a charm


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
  •