Re: Validator fails on PHP instructions inside attribute values

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 UTC