Home › Forum › WP e Accessibilità › Validare xhtml
-
AutorePost
-
-
21 Maggio 2006 alle 14:03 #1549marcadPartecipante
Salve a tutti,
ho, da poco, intrapreso la strada di utilizzatore di wordpress e devo dire che è un cms veramente fantastico, solo che ho riscontrato dei problemi nella validazione del mio blog (www.ideeonline.eu) e credo siano legati almeno in parte all’uso dell’editor di scrittura dei post. Infatti gli errori che vengono fuori sono quasi tutti del tipo: – Error Line 70 column 154: “Governo” is not a member of a group specified for any attribute – oppure – an attribute value literal can occur in an attribute specification list only after a VI delimiter.
Potreste aiutarmi?
-
22 Maggio 2006 alle 13:36 #38612amiciamiciPartecipante
Dipende tutto dal tema che utilizzi.
Se vedi ad esempio il mio sito è interamente validato nonostante utilizzi vari plugin ed un tema abbastanza complicato.
-
22 Maggio 2006 alle 21:25 #38616SteveAglAmministratore del forum
hai i permalink sbagliati in tutti i post: c’è una virgoletta in più dopo Permalink a:
<h2 class="post-title"><a href="..." title="Permalink a:" Il partito delle dimissioni">Il partito delle dimissioni</a></h2>
dovrebbe essere:
<h2 class="post-title"><a href="..." title="Permalink a: Il partito delle dimissioni">Il partito delle dimissioni</a></h2>
-
27 Maggio 2006 alle 10:08 #38676jangoPartecipante
Mi accodo in questo post onde evitare di tiratrne fuori uno nuovo!
Sto ultimando un tema che vorrei rendere pubblico in un secondo momento (per ora funziona solo con firefox…maledetto I.E. ) e vorrei che il codice fosse pulito.
Ho tuttavia un problema (una semplice stringa javascript che causa 3 errori) che non riesco a “validare”:
for(var i=0;i<hs.length;i++){
a quanto pare il problema sta nel ; tra lenght e i, ma non so che pesci pigliare per sistemarlo. Avete qualche idea a riguardo?
Ho provato a seguire i casi proposti dal w3c, tuttavia questo non era contemplato, e le modifiche che ho provato ad apportare io sono risultate vane in quanto annullavano l’effetto del javascript…
Grazie.
Fra
-
27 Maggio 2006 alle 10:36 #38677SteveAglAmministratore del forum
Secondo me (provo a dire la mia, ma potrei sbagliarmi), l’errore nasce in
hs.length
, probabilmente perchéhs
va identificato meglio a livello di sintassi. Non so dirti come correggere, cmq se non funziona su IE, forse devi riscrivere meglio il codice, potresti postarlo please? -
28 Maggio 2006 alle 0:13 #38684jangoPartecipante
mi sono spiegato male, chiedo scusa…il javascript funziona bene anche con explorer(che litiga con il css e con i .png con trasparenze) , ma il primo passo per rendere il tema crossbrowser è la validazione del codice… il javascript è il seguente:
var prev= null;
window.onload=function(){
if(document.getElementsByTagName && document.getElementById){
document.getElementById("javamenu").className="jsenable";
BuildList();
}
}
function BuildList(){
var hs=document.getElementById("javamenu").getElementsByTagName("h3");
for(var i=0;i<hs.length;i++){
hs.onclick=function(){
if(this.parentNode.className!="show"){
this.parentNode.className="show";
if(prev && prev!=this.parentNode) prev.className="hide";
prev=this.parentNode;
}
else this.parentNode.className="hide";
}
}
}
thenks
-
28 Maggio 2006 alle 18:42 #38690marcadPartecipante
Ti ringrazio di cuore mrbrown! Ho risolto il problema.
-
8 Luglio 2006 alle 12:26 #39345sergejPartecipante
Ho controllato la validità del mio blog, ma ha parecchi errori…
…e non so come correggerli!
in quanto non conosco la causa: non so da che cosa dipende il singolo errore.
Sapete dirmi come devo fare per correggere gli errori, “alla fonte” (in wordpress, pugin, theme, tanto per capirci) in modo tale che in futuro non mi capiti più di inserire errori?
Grazie mille dell’aiuto.
Ciao.
P.S. il mio sito è: http://sergejpinka.netsons.org/
mentre:
theme: http://www.oswd.org/design/information/id/2427/#comments
plugin:
Akismet
Head META Description
No Duplicate Comments
Feedburner Feed Replacement
Post Updated
Sociable
Ubernyms
WP-Mail-Validator
WordPress Database Backup
WYSI-Wordpress
-
8 Luglio 2006 alle 13:37 #39347amiciamiciPartecipante
Quando validi è lo stesso validatore a segnalarti il problema e dirti le possibili cause.
Sta poi a te, se mastichi di html, trovare il perchè.
Necessita di una, almeno, prima conoscenda dei tag.
-
8 Luglio 2006 alle 16:12 #39349sergejPartecipante
be’ si un po’ si, ma non conosco assolutamente niente di php…
…se dipendesse da un errore di php?
esiste un modo per validarlo?
forse è un offset scusate ;-P
e sicuramente è una domanda da neubbo…
-
11 Luglio 2006 alle 11:16 #39385ArtemisiaPartecipante
Se gli errori riguardassero il php, te ne saresti accorto. ^^
Nel blog sarebbero apparsi vari warning.
No. la validazione è fatta solo sul codice puro e su eventuali javascript inseriti. Per esempio il box del traduttore ti restituisce errore. Ci sono altri errori che riguardano il codice…
e usa l’editor normale. Quello avanzato è una vera ciofeca! Aggiunge tanto codice sporco!
-
11 Luglio 2006 alle 18:15 #39390amiciamiciPartecipante
Secondo i miei usi l’editor avanzato non sporca il codice se impostata la funzione di controllo sulla validità di quanto scritto.
Se si copia/incolla dia quello schifo di Word le cose cambiano (specialmente se ci sono tabelle etc.).
La validazione avviene per tutto il codice che viene letto dal browser (quindi i linguaggi lato server non sono compresi).
Per intenderci viene validato tutto ciò che vedi se visualizzi il sorgente della pagina dal tuo browser.
Se posti l’errore evidenziato dal validatore vedo il da farsi.
-
11 Luglio 2006 alle 18:48 #39391ArtemisiaPartecipante
Non copio da word. Scrivo direttamente nell’editor. Ecco, questo è il problema che avevo, che ho risolto togliendo una classe e sostituendola con punti elenco. Ora ho il codice validato.
-
9 Settembre 2006 alle 9:09 #39993marcadPartecipante
Ragazzi a volte basta una virgola, a me è successo cosà¬. Con una sola correzione ho eliminato una trentina di errori; bisognaessere perseveranti nell’analisi del tema e afidarsi a madama fortuna.
-
1 Marzo 2007 alle 7:39 #43721Giorgia71Partecipante
Ragazzi scusate se ritiro su questa discussione giusto per non riaprirne un’altra ma non riesco a validare xtml perchè mi dà tutti errori di questo tipo
Line 373 column 12: end tag for element “center” which is not open.
</p></center>
però se vado a vedere poi trovo ovviamente <center> aperto nella riga perciò non capisco come mai mi dia l’errore.
Uguali per questi
Line 70 column 535: end tag for “span” omitted, but OMITTAG NO was specified.
… ha votato”, ha aggiunto Prodi.</p>
You may have neglected to close an element, or perhaps you meant to “self-close” an element, that is, ending it with “/>” instead of “>”.
Line 96 column 6: end tag for element “span” which is not open.
</span>
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.
Non riesco proprio a capire come mai mi dà cosଠtanti errori (46) e perciò non riesco a validare.
Qualcuno potrebbe darmi una mano? Sto impazzendo dietro a tutti sti errori!
-
1 Marzo 2007 alle 11:59 #43730Giorgia71Partecipante
Ora ho scaricato i plugin XTML validation e WPXV controllando con questi due plugin mi risulta tutto corretto. Però quando poi mi collego a http://validator.w3.org/check continua a darmi errori. Vado a modificare l’errore per esempio nel post e quando salvo e riapro mi ritrovo nuovamente l’errore come prima. Cosa può essere?
-
2 Marzo 2007 alle 11:35 #43750elvinoPartecipante
vedo hai fatto progressi…
ora manca solo un alt su un’immagine e c’è un id duplicato per conseguenza dello stesso post riportato 2 volte…
-
30 Giugno 2007 alle 13:46 #45471mtbPartecipante
Mi accodo ad una delle tante discussioni sulla validazione.
Ho errori legati all’id ripetuto nel widget dei link suddivisi per categoria.
Questi sono gli errori:
Come e dove si può correggere?
Grazie
mtb
-
1 Luglio 2007 alle 23:29 #45487mtbPartecipante
Ho errori legati all’id ripetuto nel widget dei link suddivisi per categoria.
Ho trovato, se può interessare, la riga di codice nel file wp-includes/widgets.php, in corrispondenza alla function
“function register_sidebar($args = array())”:
La riga è:
'before_widget' => '<li id="%1$s" class="widget %2$s">',
sostituita da
'before_widget' => '<li class="widget %2$s">'
Non ho più errori di validazione e non credo si possano avere effetti negativi.
Può andare bene? Non sono un’esperta di php e solo da poco uso WordPress.
Grazie
mtb
-
31 Luglio 2007 alle 10:27 #45932trottoPartecipante
Scusate se mi intrometto ma probabilmente sarebbe meno corretto aprire un post ulteriore …
Anche io ho riscontrato parecchi errori :
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.studentimastptu.netsons.org%2Fhome%2F
Ma quello che mi preoccupa è il primo avvertimento che esce nella pagina per validare xhtml, dice:
Important Warnings
The validator has found the following problem(s) prior to validation, which should be addressed in priority:
1. Warning Character Encoding mismatch!
The character encoding specified in the HTTP header (utf- is different from the value in the <meta> element (iso-8859-1). I will use the value from the HTTP header (utf- for this validation.
E’ sicuramente un errore di codifica del carattere, ma non ho capito come modificare (e dove soprattutto) la codifica.. sapreste aiutarmi??
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.