Joomla.it Forum

Non solo Joomla... => Pubblica Amministrazione => Accessibilità con "JOOMLAFAP" => : Nuvola6 13 Jul 2011, 19:53:17

: [RISOLTO] The mentioned element is not allowed...
: 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>
: Re:The mentioned element is not allowed...
: mau_develop 13 Jul 2011, 21:15:57
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.
: Re:The mentioned element is not allowed...
: Nuvola6 13 Jul 2011, 21:17:59
ma cosa significa? conosco la traduzione
: Re:The mentioned element is not allowed...
: mau_develop 13 Jul 2011, 21:29:14
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.
: Re:The mentioned element is not allowed...
: Nuvola6 13 Jul 2011, 21:30:00
Ma il template è fatto a mano per joomla. Solo quel div mi dà problemi
: Re:The mentioned element is not allowed...
: Nuvola6 13 Jul 2011, 21:31:36
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">
: Re:The mentioned element is not allowed...
: mau_develop 13 Jul 2011, 22:21:50
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.
: Re:The mentioned element is not allowed...
: Nuvola6 13 Jul 2011, 22:25:15
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>
: Re:The mentioned element is not allowed...
: mau_develop 13 Jul 2011, 23:11:12
e infatti ha ragione! ...hai messo il div all'interno dell' a

M.
: Re:The mentioned element is not allowed...
: Nuvola6 13 Jul 2011, 23:11:53
Ops. Correggo subito.
Grazie mille!