Advanced search  

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]

Pages: [1]   Go Down

Author Topic: validation XHTML  (Read 2822 times)

0 Members and 1 Guest are viewing this topic.

marc59

  • Coppermine novice
  • *
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • Photos sur la nouriture vivante pour poissons
validation XHTML
« on: October 15, 2007, 07:31:08 pm »

Bonsoir,

La validation W3C m'indique une erreur:

Quote
Line 3, Column 1: Missing xmlns attribute for element html. The value should be: http://www.w3.org/1999/xhtml.

<html dir="ltr">

Many Document Types based on XML need a mandatory xmlns="" on the root element. For example, the root element for XHTML will look like:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">


Auriez-vous une idée de ce qui cloche ?

Pour info, la ligne de code <html dir="{LANG_DIR}"> se trouve dans le fichier \themes\classic\templates.html

L'adresse de l'album est www.aqualiment.info/album/


Cordialement.
Logged
Cordialement

marc59

  • Coppermine novice
  • *
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • Photos sur la nouriture vivante pour poissons
Re: validation XHTML
« Reply #1 on: October 15, 2007, 08:54:06 pm »

Après quelques recherches sur le net, j'ai trouvé ceci :
Quote
Il manque l'attribut `xmlns` qui est pourtant obligatoire dans la balise html Tag.

J'ai donc remplacé :
Code: [Select]
<html dir="{LANG_DIR}">par:
Code: [Select]
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" dir="{LANG_DIR}">
et maintenant la page est valide xhtml 

8) 8) 8) ;)

Cordialement.
Logged
Cordialement
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.