Tom's Guide > Forum > Programmation > [-Résolu-] Code javascript normes w3c

[-Résolu-] Code javascript normes w3c

Forum Programmation : [-Résolu-] Code javascript normes w3c

TomsGuide.com : 800 000 inscrits répondent à toutes vos questions high-tech et informatique. Pour obtenir de l'aide, inscrivez-vous gratuitement !
Mot :    Pseudo :           
 

Bonjour,
Le code de titag :

Code :
  1. <script language='JavaScript' type='text/javascript' src='http://g.a1.titag.com/?s=^^^^&ex=a3'></script>
  2. <noscript><a href='http://www.titag.com' target='top'><img border=0 width=88 height=31 src='http://free.a3.titag.com/^^^^'></a></noscript>



Le problème c'est qu'il n'est pas valide aux normes w3c donc il me fiche en l'air toute ma page vu qu'il la ren invalide !

Vous avez une solution ?

Merci d'avance. [:aviii:1]


Message édité par sami038 le 13-08-2007 à 17:25:53
Liens sponsorisés
Inscrivez-vous ou connectez-vous pour masquer ceci.

Salut,

voila un code valide xhtml 1.0 strict si ca peut t'aider :
<script type="text/javascript" src="include/popout.inc.js"></script>

Répondre à Spurkle

L'attribut language n'est pas valide avec les normes W3C.
Mais si tu nous disait quelles erreurs il y a (mis à part le language), on pourrait t'aider plus facilement

------------------------------ Les dessins des seins ou les desseins des saints ?
Répondre à OmaR

Bas pour l'instant je peut pas trop vu que chez w3c :
Service Temporarily Unavailable
The bwshare module will refuse your requests for the next 16 seconds.
You have made too many requests per second.

Apache/2.2.3 (Debian) mod_bwshare/0.2.0 Server at validator.w3.org Port 80


^^

Répondre à sami038

Validation Output: 4 Errors

1. Error Line 1, Column 0: no document type declaration; will parse without validation.

<script language='JavaScript' type='text/javascript' src='http://g.a1.titag.com/



The document type could not be determined, because the document had no correct DOCTYPE declaration. The document does not look like HTML, therefore automatic fallback could not be performed, and the document was only checked against basic markup syntax.

Learn how to add a doctype to your document from our FAQ, or use the validator's Document Type option to validate your document against a specific Document Type.
2. Warning Line 1, Column 87: cannot generate system identifier for general entity "ex".

…t' src='http://g.a1.titag.com/?s=222&ex=a3'></script> <noscript><a href='http



An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

Entity references start with an ampersand (& ) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.

If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
3. Error Line 1, Column 87: general entity "ex" not defined and no default entity.

…t' src='http://g.a1.titag.com/?s=222&ex=a3'></script> <noscript><a href='http



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (& ) in an URL or body text. See the previous message for further details.
4. Error Line 1, Column 89: reference to entity "ex" for which no system identifier could be generated.

… src='http://g.a1.titag.com/?s=222&ex=a3'></script> <noscript><a href='http:/



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (& ) in an URL or body text. See the previous message for further details.
5. Info Line 1, Column 86: entity was defined here.

…pt' src='http://g.a1.titag.com/?s=222&ex=a3'></script> <noscript><a href='htt

6. Error Line 1, Column 113: document type does not allow element "NOSCRIPT" here.

…com/?s=222&ex=a3'></script> <noscript><a href='http://www.titag.com' target='



The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

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

Répondre à sami038

1) Tu n'as pas de DOCTYPE déclaré
2), 3) et 4) remplace & par &amp;
5) ne devrait plus intervenir si tu modifies le &amp; je pense
6) tu n'es pas dans <html><body>


Message édité par OmaR le 13-08-2007 à 17:14:29
------------------------------ Les dessins des seins ou les desseins des saints ?
Répondre à OmaR

1) Tu n'as pas de DOCTYPE déclaré
6) tu n'es pas dans <html><body>


Normale je lé mi a par
----
5) ne devrait plus intervenir si tu modifies le &amp; je pense

Bas je mais quoi à la place alors ?!

Répondre à sami038

2), 3) et 4) remplace & par &amp;

------------------------------ Les dessins des seins ou les desseins des saints ?
Répondre à OmaR
Tom's Guide > Forum > Programmation > [-Résolu-] Code javascript normes w3c
Aller à :

Il y a 1630 utilisateurs connus et inconnus. Pour voir la liste des connectés connus, cliquez ici.

Attention

Vous allez répondre sur un sujet resté inactif pendant plus de 6 mois.
Assurez-vous d'apporter des éléments nouveaux à la discussion avant de poursuivre.

Répondre Annuler
Liens