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

Re: [VE][55] Error Message Feedback

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Thu, 2 Sep 2004 09:23:40 +0300 (EEST)
To: William Pracht <tgrk35@gmail.com>
Cc: www-validator@w3.org
Message-ID: <Pine.GSO.4.58.0409020920330.7364@korppi.cs.tut.fi>

On Thu, 2 Sep 2004, William Pracht wrote:

> My code is actually this:
>
> <td width="25%" id="sides"><?php include("leftbar.php"); ?></td>

In terms of (X)HTML, it isn't. The (X)HTML document that a validator, a
browser, or other user agent gets is the data that results from the
PHP processing of the above. That is, it has no <?php ...?> stuff but the
data that PHP substitutes for it.

Thus, if you include something with PHP, the included file need not and
must not contain a DOCTYPE declaration, unless the include directive
appears at the start of a document where such a declaration is allowed.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Thursday, 2 September 2004 07:46:19 GMT

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