Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 12
  1. #1

    The detected DOCTYPE Declaration has been suppressed?

    Buon giorno, ho validato la mia paginetta ma in seguito mi da questo messaggio:
    codice:
    The detected DOCTYPE Declaration "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">" has been suppressed and the DOCTYPE for "XHTML 1.0 Strict" inserted instead, but even if no errors are shown below the document will not be Valid until you update it to reflect this new DOCTYPE.
    cosa significa?e come risolvo?
    grazie mille

  2. #2
    E' evidente che cosi come è scritta la dichiarazione del documento non va bene.

    Guarda qui e cerca quella che ti si addice di più


  3. #3
    ciao...riprendo questa discussione, in quanto il problema esposto resta, nonostante tutto abbia cambiato il Doctype con quello che mi hai segnalato nel link.

    Mi dice sempre la stessa frase:
    This document was Tentatively checked as XHTML 1.0 Strict
    Result: Tentatively passed, 1 warning(s)

    DOCTYPE Override in effect!

    The detected DOCTYPE Declaration "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">" has been suppressed and the DOCTYPE for "XHTML 1.0 Strict" inserted instead, but even if no errors are shown below the document will not be Valid until you update it to reflect this new DOCTYPE.


    Questa è la mia pagina:
    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it">
    <head>
    	<title>SA</title>
    	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    	<meta name="Description" content="" />
    	<meta name="keywords" content="" />
    	<meta name="language" content="it" />
    	<meta name="author" content="SA" />
    	<meta name="robots" content="INDEX,FOLLOW" />
    	<meta http-equiv="Content-Language" content="it" />
    </head>

    Si vede anche dalla dichiarazione riportata nell'errore che, l'ho cambiata.
    In pratica che debbo fare?
    Grazie mille......

  4. #4
    Amministratore L'avatar di Vincent.Zeno
    Registrato dal
    May 2003
    residenza
    Emilia-Romagna (tortellini und cappelletti land!)
    Messaggi
    20,812
    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" >

  5. #5
    niente da fare...
    posto la mia paginetta:
    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" >
    <head>
    	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    	<title>Ambiente e Territorio</title>
    	<meta name="Description" content="" />
    	<meta name="keywords" content="" />
    	<meta name="language" content="it" />
    	<meta name="author" content="SA" />
    	<meta name="robots" content="INDEX,FOLLOW" />
    	<meta http-equiv="Content-Language" content="it" />
    	<meta http-equiv="Content-Style-Type" content="text/css" />
    
    	<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
    	<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
    	
    	<script src="js/prototype.js" type="text/javascript"></script>
    	<script src="js/scriptaculous.js?load=effects" type="text/javascript"></script>
    	<script src="js/lightbox.js" type="text/javascript"></script>
    </head>
    
    <body>
    	<div id="wrapper">
    		<div id="subHeader">
    			<h2>[img]images/png/tel_n_verde.png[/img]</h2>
    		</div>
    		<div id="header">
    			<h1>[img]images/png/slogan.png[/img]</h1>
    			<div id="nav">
    				[img]images/png/m1.png[/img]
    				[img]images/png/m2.png[/img]
    				[img]images/png/m3.png[/img]
    				[img]images/png/m4.png[/img]
    			</div>
    		</div>
    		<div id="headline">
    			<div id="photo"><div>
    				[img]images/png/MARCHIO-CON-RAGIONE-SOCIALE.png[/img]
    			</div></div>
    			<div id="search-news">
    				<h2>AREA RISERVATA</h2>
    				<form action="">
    					<div><input type="text" name="q" value="Username" onfocus="if(this.value=='Username') this.value='';" onmouseout="if(this.value=='') this.value='Username';" id="q" accesskey='2'/></div>
    					<div><input type="text" name="q" value="Password" onfocus="if(this.value=='Password') this.value='';" onmouseout="if(this.value=='') this.value='Password';" /></div>
    					<div class="more"><input type="image" name="search" value="" src="images/png/login.png" /></div>
    				</form>
    				
    				<h2 class="downcast">News ed Eventi</h2>
    				<div id="news-box">
    					<h3>01.05.09</h3>
    					
    
    News in aggiornamento</p>
    					<p class="more">leggi</p>
    					<h3>01.05.09</h3>
    					
    
    News in aggiornamento</p>
    					<p class="more">leggi</p>
    				</div>
    			</div>
    			<div class="clear"></div>
    		</div>
    		<div id="body">
    			<div id="body-left">
    				
    			</div>
    			<div id="body-right">
    				<h2>[img]images/png/partner.png[/img]</h2>
    				
    
    [img]images/jpg/logo.jpg[/img]</p>
    				<p class="more">
    
    
    </p>
    				
    				
    				<h2>[img]images/png/gallery.png[/img]</h2>
    				
    
    Centri Operativi</p>
    				<div id="gallery">
    					
    				</div>
    			</div>
    			<div class="clear"></div>
    		</div>
    	</div>
    	<div id="footer">
    		
    
    &copy; 2009</p>
    	</div>
    </body>
    </html>
    invece questa è la pagina per la validazione:
    codice:
    This document was Tentatively checked as XHTML 1.0 Strict
    Result: 	Tentatively passed, 1 warning(s)
    Address: 	www.miosito.com/
    Modified:	(undefined)
    Server:	Microsoft-IIS/6.0
    Size:	(undefined)
    Content-Type:	text/html
    Encoding: 	iso-8859-1	
    Doctype: 	XHTML 1.0 Strict	
    Root Element: 	html
    Root Namespace: 	http://www.w3.org/1999/xhtml
    Questo è il risultato della validazione:
    codice:
    Notes and Potential Issues
    
    The following notes and warnings highlight missing or conflicting information which caused the validator to perform some guesswork prior to validation. If the guess or fallback is incorrect, it could make validation results entirely incoherent. It is highly recommended to check these potential issues, and, if necessary, fix them and re-validate the document.
    
       1.Warning DOCTYPE Override in effect!
    
          The detected DOCTYPE Declaration "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">" has been suppressed and the DOCTYPE for "XHTML 1.0 Strict" inserted instead, but even if no errors are shown below the document will not be Valid until you update it to reflect this new DOCTYPE.
    Sono tutto orecchi...
    Grazie ancora...

  6. #6
    Amministratore L'avatar di Vincent.Zeno
    Registrato dal
    May 2003
    residenza
    Emilia-Romagna (tortellini und cappelletti land!)
    Messaggi
    20,812
    il documento è valido, testalo con http://validator.w3.org/

    quello è un avviso che riguarda la codifica automatica del caratteri.

    non so dove validi tu ma il warning che ottieni deve avere la stessa origine

  7. #7
    utilizzo lo stesso validatore, altrimenti con quale altro?

    1)il Doctype da te suggeritomi riporta Strict 1.1, ma nella validazione del W3C c'è l'1.0 come mai?
    2)se valido con l'opzione "Detect Automatically" mi riscontra questo problema
    codice:
    Line 17, Column 142: character "[" is not allowed in the value of attribute "rel"
    …ativi/web/27689-1.jpg" rel="lightbox[roadtrip]" accesskey='5'><img src="image
    It is possible that you violated the naming convention for this attribute. For example, id and name attributes must begin with a letter, not a digit.
    Ma capisco che a me serve lo Strict e quindi questo tipo di errore lo posso ignorare tranquillamente...o sbaglio?

    3) ultima cosa, avendo strutturato il sito anche con PHP, includendo le pagine che mi servono, mi chiedevo, se ogni pagina deve avere il suo Doctype...
    Grazie mille e buona giornata.

  8. #8
    un'ultimissima cosa....ho visto che dopo la validazione ti rilasciano diciamo cosi delle icone, da poter inserire nel proprio sito, diciamo che è come un riconoscimento.
    Poi ho notato che c'è un'altro tipo di validazione e cioè, quella sull'Accessibilità che sarebbe il WAI (Web Accessibility Initiative ).
    Ti chiedo:C'è un sito, tipo quello del W3C dove poter fare la validazione per l'accessibilità, cosi da avere anche l'altro riconoscimento?

    Grazie ancora....

  9. #9
    Amministratore L'avatar di Vincent.Zeno
    Registrato dal
    May 2003
    residenza
    Emilia-Romagna (tortellini und cappelletti land!)
    Messaggi
    20,812
    Originariamente inviato da ANTAGONIA
    utilizzo lo stesso validatore, altrimenti con quale altro?

    1)il Doctype da te suggeritomi riporta Strict 1.1, ma nella validazione del W3C c'è l'1.0 come mai?
    2)se valido con l'opzione "Detect Automatically" mi riscontra questo problema
    codice:
    Line 17, Column 142: character "[" is not allowed in the value of attribute "rel" 
    …ativi/web/27689-1.jpg" rel="lightbox[roadtrip]" accesskey='5'><img src="image
    It is possible that you violated the naming convention for this attribute. For example, id and name attributes must begin with a letter, not a digit.
    Ma capisco che a me serve lo Strict e quindi questo tipo di errore lo posso ignorare tranquillamente...o sbaglio?

    3) ultima cosa, avendo strutturato il sito anche con PHP, includendo le pagine che mi servono, mi chiedevo, se ogni pagina deve avere il suo Doctype...
    Grazie mille e buona giornata.
    ci altri validatori che conosco poco...

    1)XHTML 1.0 Strict è stato soppresso a favore di XHTML 1.1,
    sono la stessa cosa ma per chiarezza è stato cambiato il nome

    2) non so perché si comporta diversamente (non ho tempo di indagare: fallo tu),
    ma l'errore è chiarissimo;
    http://www.w3schools.com/TAGS/att_a_rel.asp

    3) va validato il documento finale, quello che che l'utente riceve.
    le singole inclusioni non contano in quanto tali.
    quindi UN solo DTD ad inizio documento

    WAI
    non so se ci siano strumenti automatici per la verifica...
    ma puoi cominciare da qui: http://www.w3c.it/wai/

  10. #10
    ti ringrazio per avermi segnalato questi link.
    Altra cosa, ritorno al fatto che includo tramite php le pagine nella index.php.
    Il problema che mi restituisce all'atto della validazione, è questo:
    codice:
    Errors found while checking this document as XHTML 1.0 Strict!
    Result: 6 Errors, 1 warning(s)
    e questi:
    codice:
    Validation Output: 6 Errors 
    
    Line 69, Column 7: "DOCTYPE" declaration not allowed in instance 
    				<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtm
     Line 71, Column 58: document type does not allow element "html" here 
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" >
    
    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).
    Penso che all'atto della validazione, il programma incontra per altre 3 volte i Doctype delle pagine che includo cosi da restituirmi questi errori.
    La mia domanda è:

    le pagine che includo le valido singolarmente, mentre quando valido l'index.php, tolgo alle pagine incluse i Doctype per poi rimetterli.
    E' giusto fare cosi?
    grazie ancora.....

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.