Forum pragmaMx France 24 Mai 2012 à 18:26:00 *
Bienvenue, Invité. Veuillez vous connecter ou vous inscrire.


Connexion avec identifiant et mot de passe
 
Accueil Aide Rechercher
Pages: [1]   Bas de page
Imprimer
Auteur Fil de discussion: petit probleme /**  (Lu 4548 fois)
alex_ol
Membre Complet Mx
***
Hors ligne Hors ligne

Messages: 108


« le: 30 Décembre 2008 à 17:05:35 »

Bonjour,

il y a sa en bas a droite de mon site :

et quand je clique dessus, sa :

(je suis sous IE)
alors quand je regarde dans les fichier (index.php ...) il y a ligne 2 : " /** " et quelle ligne apres " */ " donc jai supprimer * de /**; et l'erreur ne s'affiche plus.
est je bien fais, cela risque quelque chose ?

Journalisée
alex_ol
Membre Complet Mx
***
Hors ligne Hors ligne

Messages: 108


« Répondre #1 le: 04 Janvier 2009 à 11:42:01 »

?
Journalisée
alexandrevatin
Membre Senior Mx
****
Hors ligne Hors ligne

Messages: 284



« Répondre #2 le: 04 Janvier 2009 à 21:08:50 »

Bonsoir l'ami

Lire le post de Diabolo
http://www.pragmamx.fr/Forum-topic-2441-start-msg14584.html#msg14584

En attendant peut-être regardez votre theme de plus pres il y a quelque erreurs!
http://la-ligue-1.site88.net/themes/mx-green_portal/theme.html

Bien amicalement
Alex
« Dernière édition: 05 Janvier 2009 à 01:49:56 par alexandrevatin » Journalisée

alex_ol
Membre Complet Mx
***
Hors ligne Hors ligne

Messages: 108


« Répondre #3 le: 06 Janvier 2009 à 17:31:31 »

Bonjour,
merci pour le lien je vais regarder sa de plus pres; bien joué par contre pour les erreur de mon theme je ne sais pas comment y reparer  fou
Journalisée
Menthalo
Membre Junior Mx
**
Hors ligne Hors ligne

Messages: 25


« Répondre #4 le: 06 Janvier 2009 à 22:07:12 »

Bonsoir

Peut-être le theme mx-green_portal
n'est pas compatible avec le XHTML ?
Je ne suis pas un expert mais c'est peut-être une piste!

Code:
<!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">

Citation
----------------------
http://la-ligue-1.site88.net/themes/mx-green_portal/theme.html

line 338 column 30 - Erreur: document type does not allow element "SCRIPT" here
line 341 column 74 - Erreur: document type does not allow element "SCRIPT" here
line 342 column 9 - Erreur: document type does not allow element "NOSCRIPT" here

3 erreurs / 0 avertissements

 Document type does not allow element %1 here
Cause:

The element named above was found in a context where it is not allowed by the DOCTYPE Declaration.
This usually means that you have put a legitimate element someplace it shouldn't be -- such as a "style" element in the "body" section instead of inside "head".
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

If you are using JavaScript to insert HTML into a document on the client-side, you need to hide the HTML elements in your JavaScript from the validator. This is especially true if you are working with XHTML.
Examples

Improperly placed STYLE element:
Good   

<!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" lang="en" xml:lang="en">
<head>
   <title>Stylin'</title>
</head>
<body>
   <style type="text/css">
   </style>
</body>
</html>

Good   

<!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" lang="en" xml:lang="en">
<head>
   <title>Stylin'</title>
   <style type="text/css">
   </style>
</head>
<body>
</body>
</html>

XHTML syntax in an HTML document:
Good   <link ... />
Good   <link ... >

Un-escaped JavaScript in an XHTML document:
Good   

<script type="text/javascript">
var output = "<html><body><p>Hi!<\/p><\/body><\/html>";
</script>

Good   

<script type="text/javascript">
//<![CDATA[
var output = "<html><body><p>Hi!<\/p><\/body><\/html>";
//]]>
</script>

Solution:

    * If the problem is caused by a mis-placed element, move it.
    * If the problem is caused by using XHTML syntax in an HTML document, then remove the trailing slashes.
    * If the problem is caused by HTML within a JavaScript, then escape the JavaScript by marking it as CDATA.

A +
« Dernière édition: 06 Janvier 2009 à 22:09:30 par Menthalo » Journalisée
alex_ol
Membre Complet Mx
***
Hors ligne Hors ligne

Messages: 108


« Répondre #5 le: 08 Janvier 2009 à 20:30:54 »

Bonjour,
je ne suis pas non plus un expert et ni connait pas grand chose au Xhtml; mais merci de ton aide Menthalo
Journalisée
Pages: [1]   Haut de page
Imprimer
Forum pragmaMx France  |  PragmaMx's Bar  |  Discussion générale (Modérateurs: Diabolo, kroms, phi56360)  |  Fil de discussion: petit probleme /**
 
Aller à:  

Powered by SMF 1.1.15 | SMF © 2006-2009, Simple Machines

Plus