Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #35326
    Morten
    Participant

    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?

    #91307

    The data attribute is HTML5 valid.

    #91334
    tomslick
    Member

    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

    #91337
    Morten
    Participant

    Thanks
    the

    data-fancy

    was the solution

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.