Does not validate Strict XHTML
|
mikej
Joined: 2008-08-21
Posts: 4 |
Posted: Thu, 2008-08-21 18:09
|
|
Hello, Can anyone tell me why my default installation of the latest release does not validate Strict XHTML? The error I get has to do with an embedded JavaScript Element: ############# The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). I wouldn't normally care but the rest of my site is strict xhtml. Again, this is the default installation of the gallery on the main.php page. Thanks, |
|
| Login or register to post comments |

Posts: 4
Bump? Anyone? Gallery says it validates strict and it doesn't...
Posts: 4353
Looks like it's been fixed for 2.3 RC1:
http://fisheye3.atlassian.com/browse/gallery/trunk/gallery2/themes/matrix/templates/theme.tpl
and
http://fisheye3.atlassian.com/browse/gallery/trunk/gallery2/themes/matrix/templates/album.tpl
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 1837
What's the real-world benefit of something validating as strict XHTML? I'm curious.
Posts: 4353
Here, I think is a good conversation on just that topic: http://www.webmasterworld.com/forum21/9939.htm
If you search Google, I'm sure you'll find more such discussions.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 4
Hello,
Thank you for the quick reply.
This link that you mentioned above has the fix for the HTML doc tag at the top, but the JavaScript error persists.
http://fisheye3.atlassian.com/browse/gallery/trunk/gallery2/themes/matrix/templates/theme.tpl
Any other ideas?
M
Posts: 4
ooops. I apologize. It has been fixed. I had only applied the fix for the theme.tpl and not the album.tpl.
Cheers,
M