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:

#############
<script type="text/javascript">

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,
Mike

Login or register to post comments
mikej

Joined: 2008-08-21
Posts: 4
Posted: Fri, 2008-08-22 21:05

Bump? Anyone? Gallery says it validates strict and it doesn't...

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Sat, 2008-08-23 05:30

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

Login or register to post comments
alecmyers

Joined: 2006-08-01
Posts: 1837
Posted: Sat, 2008-08-23 10:14

What's the real-world benefit of something validating as strict XHTML? I'm curious.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Sat, 2008-08-23 19:41

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

Login or register to post comments
mikej

Joined: 2008-08-21
Posts: 4
Posted: Mon, 2008-08-25 20:21

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

Login or register to post comments
mikej

Joined: 2008-08-21
Posts: 4
Posted: Mon, 2008-08-25 20:27

ooops. I apologize. It has been fixed. I had only applied the fix for the theme.tpl and not the album.tpl.

Cheers,
M

Login or register to post comments