PDA

Pogčedajte punu verziju : XHTML 1.0 Frameset validacija, pokusavao neko?


mungos
02. 08. 2005., 14:53
evo ga doctype:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>



Validator uporno ukazuje na sledece, totalno bezmislene greske:


Below are the results of attempting to parse this document with an SGML parser.

Line 14, column 7: document type does not allow element "body" here

<body><div id="container">

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).

?

Line 105, column 19: end tag for "html" which is not finished

</div></body></html>

Most likely, You nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

Another possibility is that you used an element (e.g. 'ul') which requires a child element (e.g. 'li') that you did not include. Hence the parent element is "not finished", not complete.


Ima neko ideju sta je u pitanju? Prvi put da koristim frejm u xhtml1 doctypu, u strict modu je sve korektno, izuzev iframe elementa, koji naravno strict ne podrzava.

noviKorisnik
02. 08. 2005., 15:10
Kanda taj dtd koristiš za frejmset dokumente i ništa više... one u kojima deklarišeš sam frejmset i frejmove, te dokumente koje im inicijalno dodeljuješ... tu još valjda može da ide onaj noframes element i to je to, ništa više.

mungos
02. 08. 2005., 15:15
Khm... da, tako je. Sad su mi one greske razumljivije, moracu da pokusam kroz transitional da ga provucem, da vidim sta kaze. Sad cu to da probam.

mungos
02. 08. 2005., 15:19
Evo ga sada, Valid po XHTML 1.0 Transitional. :)