validation error on prettyPhoto's rel attribute

前端 未结 3 1383
感情败类
感情败类 2021-01-05 21:18

It is looks like W3C\'s validator return a validation error on prettyPhoto\'s rel attribute for HTML5 pages. How do I solve this error?

Bad value prettyP

3条回答
  •  佛祖请我去吃肉
    2021-01-05 21:47

    You can also fix it by updating the settings to use the class hook:

    s = jQuery.extend({
            ...
            hook: "rel",
            animation_speed: "fast",
            ajaxcallback: function() {},
            slideshow: 5e3,
            autoplay_slideshow: false,
            opacity: .8,
            ...
    

    to:

    s = jQuery.extend({
            ...
            hook: "class",
            ...
    

提交回复
热议问题