W3C home > Mailing lists > Public > www-validator@w3.org > December 2007

Re: Valid XHTML and PHP

From: David Dorward <david@dorward.me.uk>
Date: Sun, 16 Dec 2007 09:41:52 +0000
Message-Id: <4EAA1351-0ED6-47E4-86F3-A4E49849820A@dorward.me.uk>
Cc: <www-validator@w3.org>
To: Scott Andersen <sanderson113@cox.net>

On 15 Dec 2007, at 01:19, Scott Andersen wrote:
> Hello. I have some php code in my  XHTML documents and every time I  
> validate my code, I get error messages on the lines that have the  
> PHP code. If I take the PHP code out and insert the XHTML, the page 
> (s) validate. Is there a way around this or to have the validator  
> ignore the php code?
No. The Markup Validator is designed to validate markup - not the  
source code of programs that, when run, will produce markup. Execute  
the PHP and test the generated code instead.

David Dorward
Received on Sunday, 16 December 2007 09:42:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:54 UTC