XHTML Minor Fix for Simple Gallery

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

XHTML Minor Fix for Simple Gallery

paul.linney
Hi,

I had issues with shadow box not validating with a XHTML1.1 doctype when using the gallery feature. To solve the problem I modified the "shadowbox.js" file where it matches teh contens of the `rel` attribute in the `a` tag.

line 462: gallery:        /^(light|shadow)box__(.*?)__/i, // rel attribute format for gallery link  PL: double underscore for XHTML validation

The markup is then changed from,

  rel="shadowbox[Gallery]"

to

  rel="shadowbox__Gallery__"

There will probably still be issues using any of the other options within the `rel` attribute in regards to the XHTML1.1 validation

regards
Paul