Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: <noscript> vs Validator XHTML
Forum PHP.pl > Forum > Po stronie przeglądarki
tara
witam,

Mam taki kod:
  1. <noscript><img src="http://stat.4u.pl/cgi-bin/s.cgi?i=iden&amp;r=ns" alt="" /></noscript>


A jednak validator XHTML wywala błąd:

Cytat
document type does not allow element "img" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "address", "fieldset", "ins", "del" start-tag

....cgi?i=iden&amp;r=ns" alt="" /></noscript>

The mentioned element is not allowed 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>").


Niby wszytsko pozamykane, nic nie ma wśrodku a jednak błąd. Co ejst ? blink.gif
bregovic
Musisz ten twój noscript wstawić w jeden z tych znaczników: "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "address", "fieldset", "ins", "del" - zresztą walidator tobie to mówi. Czytaj tongue.gif
dr_bonzo
Nie noscript tylko img.
orson
witam ...

walidator wyranie napisal ze noscript moze zawierac TYLKO "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "address", "fieldset", "ins", "del" ... czyli img trzeba zamknac w divie ... dzieje sie tak dlatego ze wszystkie elementy inline - w tym przypadku obrazek - musza byc zawarte w elementach typu block - na przyklad w div ... wyraznie jest napisane ...

pozdrawiam
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.