Grow your CSS skills. Land your dream job.

Bad value XXX for attribute rel on element a: Keyword XXX is not registered. – HTML5

  • # November 25, 2011 at 3:40 pm

    On this site: http://notabene.dk/node/7 I´m playing with some HTML5 and Drupal 7

    I have a small problem. I´m using

    because i´m using jQuery Fancybox on the images .... but a rel is a "Bad value" according to W3C

    What would you suggest?

    # November 25, 2011 at 4:32 pm

    The data attribute is HTML5 valid.

    # November 26, 2011 at 7:10 am

    in your links do as julienbechade states

    in your script change

    $("a[rel=example_group]").fancybox({

    to

    $("a[data=example_group]").fancybox({

    in fancy box js file change (line 809 in jquery.fancybox-1.3.4.js)

    var rel = $(this).attr('rel') || '';

    to

    var rel = $(this).attr('data') || '';

    and change (line 815 in jquery.fancybox-1.3.4.js)

    selectedArray = $("a[rel=" + rel + "], area[rel=" + rel + "]");

    to

    selectedArray = $("a[data=" + rel + "], area[data=" + rel + "]");

    and your set

    # November 26, 2011 at 8:49 am

    Thanks
    the

    data-fancy

    was the solution

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".