Results 1 to 4 of 4

Thread: Invalid Markup using>>Tab Content Script (v 2.2)

  1. #1
    Join Date
    May 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Invalid Markup using>>Tab Content Script (v 2.2)

    1) Script Title: Tab Content Script (v 2.2)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...tabcontent.htm

    3) Describe problem: Just validating my page and have a few errors regarding this script on my site, they must have changed it because I've validated HTML5 pages with this tab script as is.

    The error is this:

    Line 196, Column 49: Bad value tcontent1 for attribute rel on element a: Keyword tcontent1 is not registered.

    <li><a href="#" rel="tcontent1" class="selected">Female</a></li>

    I don't know what this means, does anybody know a possible solution?

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    what DOCTYPE are you using? HTML5 specifies using the data-* attributes for purposes like this. Honestly, however, I wouldn't worry too much: it works in all browsers with no ill effect, and rewriting the script (while entirely possible) would probably be more trouble than it's worth.

  3. #3
    Join Date
    May 2011
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yeah it's HTML5, so are you saying use 'data' instead of 'rel'?

    Only reason I want to validate it is cos I think my sites rank better in SE's.

  4. #4
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Quote Originally Posted by johnboy View Post
    yeah it's HTML5, so are you saying use 'data' instead of 'rel'?

    Only reason I want to validate it is cos I think my sites rank better in SE's.
    Using data-rel would validate, yes. However, it wouldn't be compatible with the script "as-is".

    If you're worried about validation, don't worry too much - this issue won't affect how search engines index your site.

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
  •