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

Re: Validator fails on PHP instructions inside attribute values

From: Dag-Erling Smørgrav <des@des.no>
Date: Mon, 19 Jul 2010 16:48:23 +0200
To: "Richard Ishida" <ishida@w3.org>
Cc: "'David Dorward'" <david@dorward.me.uk>, <www-validator@w3.org>
Message-ID: <86d3ujcytk.fsf@ds4.des.no>
"Richard Ishida" <ishida@w3.org> writes:
> The pages contains lots of PHP instructions, but none of them cause a
> validation problem other than these instances where the PHP code is
> inside the attribute value.

Perhaps because...  *drumroll* processing instructions are not allowed
inside attribute values.  They are only allowed a) between the XML
declaration and the DOCTYPE declaration, b) between the DOCTYPE
declaration and the top-level element, c) after the top-level element,
and d) as content, i.e. somewhere between the opening and closing tags
of a non-empty element.

Dag-Erling Smørgrav - des@des.no
Received on Monday, 19 July 2010 14:51:10 UTC

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