coppermine-gallery.com/forum

Support => Français (French) => Language Specific Support => cpg1.4.x Français (French) => Topic started by: marc59 on October 15, 2007, 07:31:08 PM

Title: validation XHTML
Post by: marc59 on October 15, 2007, 07:31:08 PM
Bonsoir,

La validation W3C m'indique une erreur:

QuoteLine 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.
Title: Re: validation XHTML
Post by: marc59 on October 15, 2007, 08:54:06 PM
Après quelques recherches sur le net, j'ai trouvé ceci :
QuoteIl manque l'attribut `xmlns` qui est pourtant obligatoire dans la balise html Tag.

J'ai donc remplacé :
<html dir="{LANG_DIR}">
par:
<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.