validation error on prettyPhoto's rel attribute

前端 未结 3 1382
感情败类
感情败类 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 22:10

    You can use the (undocumented) hook setting as mentioned in the comments here.

    Specify your links like this: and use $("a[data-gal^='prettyPhoto'").prettyPhoto({hook: 'data-gal'}); to initialize prettyPhoto.

提交回复
热议问题