Re: Validator fails on PHP instructions inside attribute values

"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.

DES
-- 
Dag-Erling Smørgrav - des@des.no

Received on Monday, 19 July 2010 14:51:10 UTC