Re: Validator fails on PHP instructions inside attribute values

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 UTC