Re: Validator fails on PHP instructions inside attribute values

On 19 Jul 2010, at 13:17, Richard Ishida wrote:

> What follows is the output of a validation session.  The validator seems to cope fine with php PIs other than inside attribute values.  Please recognise these as PIs and allow the file to be validated.

The markup validator validates markup, not PHP source code that generates markup.

Run the software you have written and validate the output.

Trying to deal with the PHP code would be, for the simplest cases, impractical and vulnerable to false positives and negatives. For more complex cases it would be a security hazard.

-- 
David Dorward
http://dorward.me.uk

Received on Monday, 19 July 2010 12:29:05 UTC