Joomla.it Forum
Non solo Joomla... => Pubblica Amministrazione => Accessibilità con "JOOMLAFAP" => : Nuvola6 13 Jul 2011, 19:53:17
-
Perchè ricevo questo errore di validazione wc3:
Line 514, Column 22: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Codice:
<div id="ricerca">
<span class="text_agenti_title">RICERCA</span>
<span class="text_agenti">AGENTI</span>[br /]
<span class="text_agenti_br">o Rivenditori di zona</span>
</div>
-
document type does not allow element "div" here
http://translate.google.com/#en|it|document%20type%20does%20not%20allow%20element%20%22div%22%20here
M.
-
ma cosa significa? conosco la traduzione
-
cosa vuol dire cosa significa?... quello che c'è scritto... controlla il tuo document type e guarda se è permesso l'uso dei div... non credo, se te lo dice...
poi ti dice quali e come sono i tag permessi.
M.
-
Ma il template è fatto a mano per joomla. Solo quel div mi dà problemi
-
Cos'ha che non va il mio doctype?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
------------------------------
io proverei a togliere quel br, ... oppure l'errore è prima... dove apri quel div? dentro cosa?
M.
-
Mau il codice intero è questo:
<div id="agenti"><a href="http://www.xxx.it/ricerca-agenti"><img src="templates/<?php echo $this->template ?>/images/agenti.png" alt="agenti" />
<div id="ricerca" class="web">
<span class="text_agenti_title">RICERCA</span>
<span class="text_agenti">AGENTI</span><br /><span class="text_agenti_br">o Rivenditori di zona</span></div>
</a> </div>
-
e infatti ha ragione! ...hai messo il div all'interno dell' a
M.
-
Ops. Correggo subito.
Grazie mille!