It worked yesterday.
It worked yesterday.

Reputation: 4627

prettyphoto lightbox html5 validation error

I am using prettyphoto jQuery lightbox plugin. i have following html line

<a href="images/img1.jpg" rel="prettyPhoto"><img src="images/img1.jpg" alt="heading" /></a>

and when I try validate the html code it gives me following error message

Bad value prettyPhoto for attribute rel on element a: The string prettyphoto is not a registered keyword or absolute URL.

What should I do to correct this. Since rel="prettyPhoto" is necessary for the plugin to work properly I don't understand how to solve this problem

Upvotes: 1

Views: 2119

Answers (1)

Alex
Alex

Reputation: 10226

You could add the rel attribute with jQuery

$('a').attr('rel', 'prettyPhoto');

But I dont know if validator checks the original HTML or also checks the final HTML.

Upvotes: 1

Related Questions