Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    Free Find e W3c Validator Xhtml 1.1

    Ho inserito il codice di Free Find per effettuare le ricerche sul mio sito, solo che quando vado a validare la pagina mi escono errori come e simili a questo:

    Warning Line 3 column 14674: cannot generate system identifier for general entity "w".
    .../search.freefind.com/find.html?id=33888197&w=0&p=0;"><img height="10" alt="li
    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.


    Come posso risolvere?

    grazie

  2. #2
    Non so se già lo sai ma alcuni caratteri, quando si scrivono in un documento (X)HTML, devono essere codificati al fine di evitare conflitti all'interno del codice.

    Ad esempio, un segno di minore, scritto magari all'interno di una formula matematica, potrebbe essere confuso dal browser come una parentesi di apertura di tag. I principali caratteri cui occorre più spesso tenere d'occhio sono:
    • le lettere accentate,
    • i caratteri di maggiore e minore e
    • caratteri speciali come le "e" commerciale.

    Il tuo problema risiede proprio in questo ultimo simbolo, ovvero "&", contenuto nell'URL del link citato nel report del validatore. Per codificare un carattere occorre utilizzare le cosiddette entità html; la tabella seguente dovrebbe esserti d'aiuto:

    - www.w3schools.com/tags/ref_entities.asp


Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.