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

Re: Validator fails on PHP instructions inside attribute values

From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Mon, 2 Aug 2010 17:36:53 +0200
To: Dag-Erling Smørgrav <des@des.no>
Cc: www-validator@w3.org
Message-ID: <20100802173653633410.8d3f0f68@xn--mlform-iua.no>
Dag-Erling Smørgrav, Mon, 02 Aug 2010 17:27:58 +0200:
> 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.

HTML5 isn't XML, so that should work fine. :-)
-- 
leif halvard silli
Received on Monday, 2 August 2010 15:37:27 GMT

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