Post
by fcoulter » Thu Sep 13, 2007 12:18 pm
Hi,
I have been hard at work designing a template to enter into your contest.
However I believe that there is a problem with your competition - your sample data for the joomla template is not actually valid HTML. The problem is caused by the javascript that adds a caption to images with the classname 'caption' - the javascript is in the file includes/js/joomla/caption.js which is automatically included in the document head.
You have such an image in your sample data. The problem is that this image is enclosed with paragraph 'p' tags. However when the script adds the caption to the image it inserts another paragraph element and you end up with a paragraph inside a paragraph. I don't think that this is valid HTML. It causes problems for the display of my template in both Opera and Firefox.
I think that you need to do something about this. I don't want to have to re-design my template, I have put a lot of work into it and I believe it achieves a good, largely table-less design, and the problem is not with the template anyway, it is with your data. I would also point out that your default template for joomla 1.5 includes a claim that it is valid XHTML, so it really ought to actually be valid.
To be honest I don't know why you want to include the caption script anyway, it seems like a bit of a gimmick really. If users really want captions for their images they can add them themselves with little extra effort. And the script potentially will cause problems with the XHTML whenever the image is contained inside a paragraph or other block-level element.
At the very least, if you insist on including it, there should be some way of over-riding the template for the document head to drop the caption script.