XHTML 1.0 Strict XHTML 1.0 Strict
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

XHTML 1.0 Strict

Started by jimjam, June 16, 2006, 09:28:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jimjam

Hiya, I'm new to Coppermine.

I'd like to know, is there a theme that validates as XHTML 1.0 Strict?

If not, would it be straightforward to create a new theme that is compliant?

Many Thanks, Jim.

Tarique Sani

Reynolds and 2BorNot2B use to validate XHMTL 1.1 transitional - but they are old now - perhaps you would want to take a look at those
SANIsoft PHP applications for E Biz

jimjam

No, neither of those themes are XHTML 1.0 Strict.

Would it be possible to make a XHTML 1.0 Strict theme?
Does the core coppermine code generate html that is compliant with XHTML 1.0 Strict?

Thanks, Jim

Nibbler

No, the core code is not XHTML 1.0 Strict compliant.

Joachim Müller

To add to what Nibbler said: one of the main reasons why coppermine's core code doesn't validate xhtml strict is the fact that you can't properly embed multimedia into a page using xhtml strict compliant code - either FF or IE will fail to work as expected. We sacrificed xhtml strict compliance for cross-browser compatibility, as that's what most Coppermine users prefer if they have a choice. After all, most users don't care for standards compliance at all - imo xhtml strict is currently a geek toy, nothing else. Designers are exited about it, users are not.

giorgio79

Quite an old topic, but probably worth revisiting :)

I notice G2 is XHTML strict compliant, so probably it is feasible by now to embed multimedia in there :), would be great if we could cook sg like that up for Coppermine :)

http://codex.gallery2.org/G1-G2_Comparison

Joachim Müller

Then show me how they handle embedded multimedia files - a link to a sample gallery with multimedia content will do.

giorgio79


giorgio79

Ahhh you are right, it does not validate.

Even though xhtml strict is declarded, object and ember tags are marked proprietary.

Joachim Müller

35 validation errors for http://anyad.rulez.org/main.php/v/alb_ircvideo/who-drives-the-car.flv.html.
As I suspected, they only validated the core design, but not the embedded multimedia pages. They suffer from the very same issues I talked about earlier. So what I said above still applies, and probably never will change: cross-platform usability is more important than respecting strict standards. The menalto gallery staff probably haven't reviewed this detail - the gallery template in itself will validate, but embedded multimedia pages won't. The same is true for coppermine: we could make it validate strict as well, except for the multimedia pages. What would be the use of this? Case closed imo.

mbjr

This is an altered version of gallery's flashvideo module as the original is not using anything like swfobject/ufo/etc JS solution to get the videoplayer window in place - i.e. it suffers from both validation and IE's "click here to activate this control" issues.

It passes 1.0 Strict validation and works from IE6/7, FF, Opera as it seems.

Focusing on the multimedia implementation part only, here's how it's done:


<script type="text/javascript" src="http://anyad.rulez.org/modules/flashvideo/lib/swfobject.js"></script>
        <div id="flashvideo">
<div id="soContent">Our video player does not work on your configuration, shame on us :-(<br />Although it's not the end, you may try to <a href="?detectflash=false">skip flash detection </a>or <br /> to download <b>Who drives the car?</b> video directly <br />and play with with a local media player.<br /><br />We're sorry for the inconvenience.</div>

</div>
        <script type="text/javascript">
        // <![CDATA[
          var so = new SWFObject("/modules/flashvideo/lib/player.swf", "IFid1", "640", "480", "0", "#FFFFFF");
          so.addParam("AllowScriptAccess", "always");
          so.addParam("allowFullScreen", "true");
          so.addParam("flashVars","...loads of configs");
          so.useExpressInstall("/modules/flashvideo/lib/expressinstall.swf");
          so.write("soContent");
          // ]]>
        </script>


giorgio79

Yep, it validates now, xhtml strick :P