W3C home > Mailing lists > Public > www-validator@w3.org > June 2001

Re: Can src of an iframe be just HTML fragments?

From: Nick Kew <nick@webthing.com>
Date: Sat, 9 Jun 2001 00:43:13 +0100 (BST)
To: "Peter K. Sheerin" <pete@petesguide.com>
cc: www-validator@w3.org
Message-ID: <Pine.BSF.4.21.0106090040190.639-100000@fenris.webthing.com>

On Fri, 8 Jun 2001, Peter K. Sheerin wrote:

> I'm trying to answer a question the validator can't tell me. I've got some <iframe> tags in a document that validates. The validator never sees the source referenced in these tags, and thus doesn't try to validate them.
> 
> Shouldn't it, though? Because:

No, it's a separate document, not part of your HTML page.

> The browsers do see this, because they have to render it. So do I need to make sure that any file referenced by an <iframe> is complete HTML that validates, with <html>, <head>, and <body>?

You should use a spidering tool to validate.  The WDG validator will give
you a one-off check, or the Site Valet will monitor it on a regular basis
and report if and when errors creep in.

-- 
Nick Kew
Received on Friday, 8 June 2001 19:43:31 GMT

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