Visualizzazione dei risultati da 1 a 3 su 3

Discussione: Errore validazione

  1. #1
    Utente di HTML.it
    Registrato dal
    Dec 2008
    Messaggi
    121

    Errore validazione

    Salve a tutti!
    Sto validando un sito, e ottengo questi errori. Purtroppo il sito non è ancora online, perché non ho configurato il server e lo farò a lavoro ultimato.
    Ecco qui il codice dove viene segnalato l'errore:

    codice:
    function mycarousel_getItemHTML(url)
    {
        return '[img]' + url + '[/img]';
    
    };
    
    L'errore generato è:
    document type does not allow element "a" here
    …a style="border: none;" href="'+url+'"><img style="border: none;" src="' + url…
    ✉
    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).
    Poi ottengo un'altro errore qui:

    codice:
    <div id="mycarousel" class="jcarousel-skin-ie7">
        <ul>
          [/list]
      </div>
    
    L'errore segnalato è:
     end tag for "ul" which is not finished[/list]
    ✉
    Most likely, you nested tags and closed them in the wrong order. For example 
    
    [i]...</p> is not acceptable, as [i] must be closed before 
    
    . Acceptable nesting is: 
    
    ...</p>
    Uso questo DTD:

    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    Ovviamente, per il secondo errore (ul) ho ben verificato, e <ul> non è annidato in nessun elemento (tipo "p").
    Per quanto riguarda il primo errore, sto usando jCarousel e non ho idea del perché viene generato l'errore.

    Qualche idea?

    Grazie!

  2. #2
    per il secondo errore non hai 2 tag ul di chiusura ma solo uno di apertura,

    mentre nel primo errore potresti aver dimenticato un /

  3. #3
    Utente di HTML.it
    Registrato dal
    Dec 2008
    Messaggi
    121
    Ho controllato, ma non mi pare di avere due tag ul, ma solo uno...

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.