Advanced search  

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

Pages: [1]   Go Down

Author Topic: validation XHTML  (Read 3017 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.018 seconds with 20 queries.