Votre question

[-Résolu-] Code javascript normes w3c

Tags :
  • Script
  • Programmation
Dernière réponse : dans Programmation
12 Août 2007 17:00:26

Le code de titag :
  1. <script language='JavaScript' type='text/javascript' src='http://g.a1.titag.com/?s=^^^^&ex=a3'></script>
  3. <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]

Autres pages sur : resolu code javascript normes w3c

12 Août 2007 20:56:31


voila un code valide xhtml 1.0 strict si ca peut t'aider :
<script type="text/javascript" src="include/popout.inc.js"></script>
a c 232 L Programmation
12 Août 2007 22:37:54

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
Contenus similaires
13 Août 2007 16:54:58

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

13 Août 2007 16:56:11

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 "&" (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 æ 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).
a c 232 L Programmation
13 Août 2007 17:14:01

1) Tu n'as pas de DOCTYPE déclaré
2), 3) et 4) remplace & par &
5) ne devrait plus intervenir si tu modifies le & je pense
6) tu n'es pas dans <html><body>
13 Août 2007 17:17:57

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 & je pense

Bas je mais quoi à la place alors ?!
a c 232 L Programmation
13 Août 2007 17:18:59

2), 3) et 4) remplace & par &
13 Août 2007 17:24:19

A ok merci
Tom's guide dans le monde
  • Allemagne
  • Italie
  • Irlande
  • Royaume Uni
  • Etats Unis
Suivre Tom's Guide
Inscrivez-vous à la Newsletter
  • ajouter à twitter
  • ajouter à facebook
  • ajouter un flux RSS