validation XHTML validation XHTML
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

validation XHTML

Started by marc59, October 15, 2007, 07:31:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

marc59

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.
Cordialement

marc59

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.
Cordialement