fancybox icon indicating copy to clipboard operation
fancybox copied to clipboard

This usage of the rel attribute is html5 invalid

Open sievert opened this issue 15 years ago • 5 comments

I would prefer to use the data- attribute like data-fancybox-group="GROUPID" and for older browsers / older html versions a config in the fancybox options fancybox({useRel: true})

sievert avatar Nov 24 '11 09:11 sievert

What about - if attribute "data-fancybox-group" exists then use it, otherwise use attribute "rel" (without extra option) ?

fancyapps avatar Nov 24 '11 10:11 fancyapps

perfect!

sievert avatar Nov 24 '11 10:11 sievert

Ok, I`ll include this in 2.0.2

fancyapps avatar Nov 24 '11 10:11 fancyapps

Thanks.

sievert avatar Nov 24 '11 10:11 sievert

Is this documented somewhere? Only found out about this option by searching for this issue, here. Maybe this should be used in the examples?

Have a nice one :) Till

tillsanders avatar Feb 20 '14 10:02 tillsanders