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

Re: Validator fails on PHP instructions inside attribute values

From: David Dorward <david@dorward.me.uk>
Date: Mon, 19 Jul 2010 13:28:28 +0100
Cc: <www-validator@w3.org>
Message-Id: <E6345B1B-3BE6-4CE8-982C-EF76F9481D90@dorward.me.uk>
To: "Richard Ishida" <ishida@w3.org>

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
Received on Monday, 19 July 2010 12:29:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:01 UTC