2.5 doesn’t allow square brackets in HTML ‘rel’ tags
-
well then
i use the rather wonderful shadowbox.js to display image galleries on my site at http://www.darrell-berry.com.
in earlier versions, i could use shadowbox’s tagging syntax to set up galleries in posts and pages using snippets like this:
[SNIP]
<a rel="shadowbox[gallery]" href="http://farm3.static.flickr.com/XXX/2240341276_7963027872_b.jpg" title="Nuke Them All @ Images 2 February 2008">Full-Screen Gallery</a>[/SNIP]
HOWEVER in 2.5, the [gallery] text seems to get stripped out between database and the HTML returned to the client — ie when i do View Source in my browser of a page including the above, it comes out as:
<a rel="shadowbox" href="http://farm3.static.flickr.com/XXX/2240341276_7963027872_b.jpg" title="Nuke Them All @ Images 2 February 2008">Full-Screen Gallery</a>which breaks shadowbox (the [gallery] text is the bit which tags a bunch of images as being part of the same gallery!)
i’m guessing that the stripping out is down to some enhanced version 2.5 sanitising/XSS blocking? If so, its blocking valid XHTML (shadowbox-enabled XHTML validates correctly, so stripping the brackets out is taking out a valid construct, as i read it, and hence a bug!)
any thoughts?
d
The topic ‘2.5 doesn’t allow square brackets in HTML ‘rel’ tags’ is closed to new replies.