Partage
  • Partager sur Facebook
  • Partager sur Twitter

validator.w3c.org

Je ne comprends pas une erreur

Sujet résolu
    8 mai 2006 à 15:02:40

    J'utilise du javascript et lors de l'esai de validation voici la seule erreur :


    Citation : W3C xHTML 1.0


    Error Line 134 column 13: there is no attribute "onClick".

    <a onClick="return supprimer('administration/liste_news-17-delete.html')" styl

    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.


    • Partager sur Facebook
    • Partager sur Twitter
    Créateur de www.shotguncovoit.com !
      8 mai 2006 à 15:19:46

      Citation : W3C recommandation

      XHTML documents must use lower case for all HTML element and attribute names. This difference is necessary because XML is case-sensitive e.g. <li> and <LI> are different tags.

      • Partager sur Facebook
      • Partager sur Twitter
        8 mai 2006 à 15:20:27

        Hep !

        Alors, je te le dis tout de suite, je connais pas, mais alors, paaaas du tout le Javascript, mais essaie donc de mettre un "c" minuscule ! :-°

        Désolé si c'est pas ça ! ;)
        • Partager sur Facebook
        • Partager sur Twitter
          8 mai 2006 à 15:31:47

          This Page Is Valid XHTML 1.0 Strict!

          Merci beaucoup !
          • Partager sur Facebook
          • Partager sur Twitter
          Créateur de www.shotguncovoit.com !
            8 mai 2006 à 15:52:12

            Faudrait que tu lises les recommandations du w3c un de ces jours...
            • Partager sur Facebook
            • Partager sur Twitter
              8 mai 2006 à 17:00:12

              ???
              C'est en anglais :p
              • Partager sur Facebook
              • Partager sur Twitter
              Créateur de www.shotguncovoit.com !

              validator.w3c.org

              × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
              × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
              • Editeur
              • Markdown