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
You can use the (undocumented) hook setting as mentioned in the comments here.
hook
Specify your links like this: and use $("a[data-gal^='prettyPhoto'").prettyPhoto({hook: 'data-gal'}); to initialize prettyPhoto.
$("a[data-gal^='prettyPhoto'").prettyPhoto({hook: 'data-gal'});