PDA

View Full Version : Invalid Markup using>>Tab Content Script (v 2.2)



johnboy
04-25-2012, 02:41 PM
1) Script Title: Tab Content Script (v 2.2)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/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?

traq
04-25-2012, 03:37 PM
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.

johnboy
04-26-2012, 10:30 AM
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.

traq
04-26-2012, 02:25 PM
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.