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

Re: Validator fails on PHP instructions inside attribute values

From: Dag-Erling Smørgrav <des@des.no>
Date: Mon, 02 Aug 2010 17:27:58 +0200
To: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Cc: Philip Taylor (Webmaster, Ret'd) <P.Taylor@Rhul.Ac.Uk>, Richard Ishida <ishida@w3.org>, 'David Dorward' <david@dorward.me.uk>, www-validator@w3.org
Message-ID: <86y6cpghkx.fsf@ds4.des.no>
Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> writes:
> Regarding temporarily validating as HTML5: it turns out that, even 
> though HTML5 does not allow PI-s, it doesn't consider PI-s inside 
> attributes as PI-s.

XML does *not* allow < or & inside attribute values.

[10]   	AttValue	   ::=   	'"' ([^<&"] | Reference)* '"'
			|  "'" ([^<&'] | Reference)* "'"

so you can *not* use <? ... ?> *anywhere* except where a PI is allowed.

DES
-- 
Dag-Erling Smørgrav - des@des.no
Received on Monday, 2 August 2010 15:28:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:43 GMT