W3C home > Mailing lists > Public > www-validator@w3.org > July 2004

Iframe Error

From: <eric.arcand@hrdc-drhc.gc.ca>
Date: Tue, 6 Jul 2004 14:51:31 -0400
Message-ID: <8B7E899B2B57C248AF19B361DE98067501316300@NCEV01.hrdc-drhc.net>
To: <www-validator@w3.org>
Hi,

I was looking to find the correct information how to validate a file with the "IFRAME" in XHTML 1.0, but couldn't because it's always give me 2 errors.

But finally realise that you had the same error on all your iframe examples pages.

Ex. http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20011105/xhtml/static/xhtml_iframe/css3-modsel-3.xml

Here is a copy of the validation errors :

--------------------------------------

1.      Line 15 <http://validator.w3.org/check?uri=http%3A%2F%2Fwww.w3.org%2FStyle%2FCSS%2FTest%2FCSS3%2FSelectors%2F20011105%2Fxhtml%2Fstatic%2Fxhtml_iframe%2Fcss3-modsel-3.xml&charset=iso-8859-1+%28Western+Europe%29&doctype=%28detect+automatically%29&ss=1&outline=1#line-15#line-15> , column 6: document type does not allow element "body" here

<body>

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

? <mailto:www-validator@w3.org?Subject=%5bVE%5d%5b64%5d%20Error%20Message%20Feedback>  

2.      Line 43 <http://validator.w3.org/check?uri=http%3A%2F%2Fwww.w3.org%2FStyle%2FCSS%2FTest%2FCSS3%2FSelectors%2F20011105%2Fxhtml%2Fstatic%2Fxhtml_iframe%2Fcss3-modsel-3.xml&charset=iso-8859-1+%28Western+Europe%29&doctype=%28detect+automatically%29&ss=1&outline=1#line-43#line-43> , column 6: end tag for "html" which is not finished

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

--------------------------

I tried different way to setup my page but couldn't pass this test. (Which I need to publish my page.)

Is there a way to validate at 100% with the iframe, or I will always get these two errors.

 

Thanks in advance for you cooperation, and continue on your great work.

_______________

Eric

 
Received on Tuesday, 6 July 2004 14:52:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:14 GMT