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

    end tag for element "li" which is not open.

    codice:
    <%
    sSQL="SELECT * FROM Menu WHERE Sezione= 'Studiare' order by ID ASC;"
    objRS.Open sSQL, objConn, 3, 3
    %>
          <h4><%=objRS("Sezione")%></h4> 
          <ul>[*]  
    <%Do while not objRS.Eof
      ID=objRS("ID")
      Sezione=objRS("Sezione")
      Nome=objRS("Nome")
    %>
    
    ">-<%=objRS("Nome")%> 
    
    <%
    objRS.movenext
    Loop
    %>
    
    <%
    objRS.Close
    %>
          [/list]
    Come vedete ul e li sono stati aperti e sono stati chiusi.
    però il validatore del w3c mi da errore.


    Error Line 145 column 10: end tag for element "li" which is not open.

    The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

    If this error occured in a script section of your document, you should probably read this FAQ entry.



    Error Line 146 column 8: end tag for element "ul" which is not open.[/list]



    il validatore praticamente mi dice che nn ho mai aperto ne ul ne li...ma come vedete invece lo aperto...dov'è che sbaglio?

    P.S. il doctype è <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

  2. #2
    Utente di HTML.it L'avatar di nuky
    Registrato dal
    Oct 2001
    Messaggi
    1,053
    Beh, tu devi validare l'HTML, non l'ASP.
    Stessa cosa devi fare con noi del forum, ci devi far vedere quello che il tuo asp manda al client.
    Visto solo quel pezzo, sembrerebbe che il validatore si stia sbagliando... ma posta la pagina HTML.
    - "E' un messaggio. E' di Svarion, della terra di Merdor!"
    - "Busto Arsizio?"
    - "Terrazzo, sgabello, formaggio. Borraccia blu, ca**o di gomma e... CANNUCCIA!"
    - "Ca**o dici? C'è scritto «frocio chi legge»!"

  3. #3
    Originariamente inviato da nuky
    Beh, tu devi validare l'HTML, non l'ASP.
    Stessa cosa devi fare con noi del forum, ci devi far vedere quello che il tuo asp manda al client.
    Visto solo quel pezzo, sembrerebbe che il validatore si stia sbagliando... ma posta la pagina HTML.
    ok..

    grazie ho trovato l'errore...bastava guarda nell'html che interpreta il browser...

  4. #4
    Utente di HTML.it L'avatar di nuky
    Registrato dal
    Oct 2001
    Messaggi
    1,053
    Originariamente inviato da ffilogamo
    ok..

    grazie ho trovato l'errore...[b]bastava guarda nell'html che interpreta il browser[b]...
    Ma dai...
    - "E' un messaggio. E' di Svarion, della terra di Merdor!"
    - "Busto Arsizio?"
    - "Terrazzo, sgabello, formaggio. Borraccia blu, ca**o di gomma e... CANNUCCIA!"
    - "Ca**o dici? C'è scritto «frocio chi legge»!"

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 © 2026 vBulletin Solutions, Inc. All rights reserved.