W3C validators failt W3C validators failt
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

W3C validators failt

Started by Hexo, June 09, 2009, 10:46:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hexo

Hey.

Bei meinem Style hab ich ein Problem. Er ist nicht xhtml gültig.
Warum?
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.emsfriends.com%2F&charset=(detect+automatically)&doctype=Inline&group=0&verbose=1&user-agent=W3C_Validator%2F1.654

Das komische an der Sache ist, dass er bis gestern den Test bestanden hat.
Was hab ich geändert... Ich wollte eine andere Bildansicht beim Displayimage haben und musste deswegen meinen Footer und meinen Header aus dem template.html rausholen und als eigene Datei hinterlegen, dass ich meinen Wunsch mit dem Popup durchführen kann. Siehe diesen Topic:
http://forum.coppermine-gallery.net/index.php/topic,59944.0.html

Deswegen sieht mein template.html jetzt wie folgt aus:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" dir="ltr">
<!-- <html dir="{LANG_DIR}"> -->
<head>
<!--<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />-->
<title>{TITLE}</title>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Emsfriends.de die Seite von Bad Emser Freunden. Wir hatten in den letzten Jahren viele schoene Momente. Hier ein paar Bilder von uns." />
<meta name="keywords" content="Bad Ems, Ems, Bad, Bartholom&auml;usmarkt, Emsfriends, Pics, Forum, Bilder, Clan, Freunde, Attenhausen, Kurstadt, Lahn, Limes, R&ouml;merturm, Verein, Staatsbad" />
<meta name="language" content="deutsch" />
<meta name="robots" content="index,follow" />
<meta name="author" content="Hexo" />
<meta name="revisit-After" content="7 days" />
<meta name="distribution" content="global" />
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapimgrestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapimage() { //v3.0
  var i,j=0,x,a=MM_swapimage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function popup(url) {
fenster=window.open(url, "Popupfenster", "width=650,height=600,left=0,top=0,toolbar=no,scrollbars=yes,status=no,directories=no,menubar=no,location=no,resizable=no");
fenster.focus();
return false;
}
//-->


</script>
<script type="text/javascript" src="scripts.js"></script>


<link rel="stylesheet" href="themes/emsfriends/style.css" />


</head>
<body onload="MM_preloadImages('themes/emsfriends/images/navigation/forum2.jpg','themes/emsfriends/images/navigation/home02.jpg','themes/emsfriends/images/navigation/pics2.jpg','themes/emsfriends/images/navigation/movies2.jpg','themes/emsfriends/movies/images/attenhausen04aktiv.gif','themes/emsfriends/movies/images/freak_showaktiv.gif','themes/emsfriends/movies/images/handballaktiv.gif','themes/emsfriends/movies/images/jack_assaktiv.gif','themes/emsfriends/movies/images/kloballaktiv.gif','themes/emsfriends/movies/images/volleyballaktiv.gif','themes/emsfriends/movies/images/zeltaktiv.gif','themes/emsfriends/movies/images/hollandaktiv.gif','themes/emsfriends/movies/images/minibikeaktiv.gif','themes/emsfriends/movies/images/jumpaktiv.gif','themes/emsfriends/movies/images/lennarteaktiv.gif','themes/emsfriends/movies/images/baw07aktiv.gif')">

<table align="center" width="95%">
<tr>
<td>
{CUSTOM_HEADER}

<!--Galerie Anfang-->
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top">
<table width="100%" border="0" align="center">
<tr>
<td valign="top" align="center">
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="2">
<tr>
<td valign="top" align="center" class="maintable">
{ADMIN_MENU}
</td>
</tr>
<tr>
<td valign="top" align="center" class="maintable">
{GALLERY}
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!--Galerie Ende-->

  {CUSTOM_FOOTER}
</td>
</tr>
</table>

</body>
</html>


Mein Header
<!--Kopf Anfang-->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="left" width="150px" valign="top">
<img src="themes/emsfriends/images/navigation/kopfgal2.gif" width="150px" height="100px" alt="image" />
</td>
<td align="center" width="100%" valign="top">
<img src="themes/emsfriends/images/EF_01.jpg" width="159px" height="90px" alt="Logo"/>
</td>
<td align="center" valign="top">
</td>
<td align="right" width="150px" valign="top">
<img src="themes/emsfriends/images/navigation/kopfgal4.gif" width="150px" height="100px" alt="image" />
</td>
</tr>
</table>
<!--Kopf Ende-->

<!--Obere Navigation Anfang-->
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="center">


<a href="index.php" onmouseout="MM_swapimgrestore()" onmouseover="MM_swapimage('Image1','','themes/emsfriends/images/navigation/pics2.jpg',1)"><img src="themes/emsfriends/images/navigation/pics1.jpg" alt="Pics" name="Image1" width="56" height="33" border="0" /></a>

<a href="movies.php" onmouseout="MM_swapimgrestore()" onmouseover="MM_swapimage('Image2','','themes/emsfriends/images/navigation/movies2.jpg',1)"><img src="themes/emsfriends/images/navigation/movies1.jpg" alt="Movies" name="Image2" width="87" height="33" border="0" /></a>
   
<a href="start.php" onmouseout="MM_swapimgrestore()" onmouseover="MM_swapimage('Image3','','themes/emsfriends/images/navigation/home02.jpg',1)"><img src="themes/emsfriends/images/navigation/home01.jpg" alt="Home" name="Image3" width="151" height="33" border="0" /></a>

<a href="http://www.emsfriends-forum.de" target="_blank" onmouseout="MM_swapimgrestore()" onmouseover="MM_swapimage('Image4','','themes/emsfriends/images/navigation/forum2.jpg',1)"><img src="themes/emsfriends/images/navigation/forum1.jpg" alt="Forum" name="Image4" width="75" height="33" border="0" /></a>

<a href="mailto:&#109;&#097;&#105;&#108;&#095;&#097;&#110;&#064;&#101;&#109;&#115;&#102;&#114;&#105;&#101;&#110;&#100;&#115;&#046;&#099;&#111;&#109;?subject=Die%20Emsfriends%20Homepage" onmouseout="MM_swapimgrestore()" onmouseover="MM_swapimage('Image5','','themes/emsfriends/images/navigation/email2.jpg',1)"><img src="themes/emsfriends/images/navigation/email1.jpg" alt="Kontakt" name="Image5" width="72" height="33" border="0" /></a>

</td>
</tr>
</table>

<!--Obere Navigation Ende-->


Footer
<!--Untere Navigation Anfang-->
<table width="100%" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left"><a href="/login.php?referer=admin.php" style="text-decoration: none" class="Stil2">Login</a><span class="Stil2"> / </span><a href="/logout.php?referer=admin.php" style="text-decoration: none" class="Stil2">Logout</a>
</td>
</tr>

<tr>
<td width="150px" align="left" valign="bottom">
<img src="themes/emsfriends/images/navigation/kopfgal1.gif" width="150px" height="100px" alt="image" />
</td>

<td align="center" width="100%" valign="bottom" nowrap="nowrap">
<a href="disclaimer.php" onmouseout="MM_swapimgrestore()" onmouseover="MM_swapimage('Image6','','themes/emsfriends/images/navigation/disclaimer2.jpg',1)"><img src="themes/emsfriends/images/navigation/disclaimer1.jpg" alt="Disclaimer" name="Image6" width="137" height="33" border="0" /></a>

<a href="links.php" onmouseout="MM_swapimgrestore()" onmouseover="MM_swapimage('Image7','','themes/emsfriends/images/navigation/links2.jpg',1)"><img src="themes/emsfriends/images/navigation/links1.jpg" alt="Links" name="Image7" width="69" height="33" border="0" /></a>

<a href="http://www.emsfriends.com/gbook/" onclick="return popup(this.href)" onmouseout="MM_swapimgrestore()" onmouseover="MM_swapimage('Image8','','themes/emsfriends/images/navigation/gaeste2.jpg',1)"><img src="themes/emsfriends/images/navigation/gaeste1.jpg" alt="Gästebuch" name="Image8" width="149" height="33" border="0" /></a>

<a href="http://www.emsfriends.com/counter/" target="_blank" onmouseout="MM_swapimgrestore()" onmouseover="MM_swapimage('Image9','','themes/emsfriends/images/navigation/besucher2.jpg',1)"><img src="themes/emsfriends/images/navigation/besucher1.jpg" alt="Counter" name="Image9" width="119" height="33" border="0" /></a>

</td>
<td width="150px" align="right" valign="bottom">
V2.9<img src="themes/emsfriends/images/navigation/kopfgal3.gif" border="0" width="150px" height="100px" alt="image"/>
</td>
</tr>
</table>
<!--Untere Navigation Ende-->


Pack ich alles wieder in eine Datei, dann passt der Code und wird zertifiziert.
Als Fehler wird The error was: utf8 "\xE4" does not map to Unicode ausgegeben.
Laut google soll das ein Zeichensatzproblem sein, dass ich ein Zeichen verwendet habe, dass NICHT UTF8 ist.
Aber 1. finde ich kein Zeichen mehr. 2. Wie kann das mit ein und dem selben Code einmal gültig sein und einmal nicht, nur weil der Header und Footer getrennt betrachtet werden?

Ich hoffe mir kann jemand von euch helfen.

Gruß Hexo


Αndré

Eventuell sind deine Header-/Footer-Dateien in der falschen Kodierung gespeichert.

Hexo

Oh man, das wars. Es könnte so einfach sein :)
Verdammt, da hat Notepad++ mir einen Strich durch die Rechnung gemacht.
Egal, jetzt klappt es. Danke für den Tipp!
Was würde ich ohne Dich tun :-)

Gruß Hexo