Closed iMattPro closed 12 years ago
Didn't mean to close it ;)
What do you think of that?
The only question about that, is if you switch to the data- attribute, then prettyPhoto would only validate in HTML5 documents. ie: somebody still using XHTML1 would fail validation because their doctype wouldn't support data- even though it will still work as far as the browser is concerned.
So I am not sure what the most universal solution is :S
Yes, nbrew has a good solution there!
In HTML5, the rel tag is more strictly validated for its proper usage. So, basically, prettyphoto can not use the rel tag.
Perhaps it is time to switch to using the class tag instead of the rel tag.
$("a[class^='prettyPhoto']").prettyPhoto();