Re: Validator fails on PHP instructions inside attribute values

Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> writes:
> You can have unescaped angle brackets inside attribute values inside
> SGML - at least according to the HTML4 validator. HTML5 also allows it
> - at least according to Validator.nu. XHTML, including XHTMl5, does
> not allow it. So "pre-validating" as HTML4 or HTML5, instead of as
> XHTML, could be a solution.  [...]  Again, in SGML, PIs seem permitted
> inside attributes.

...but not in XML.  I wish the W3C could settle on either SGML or XML
instead of maintaining two slightly incompatible HTML dialects.

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

Received on Monday, 2 August 2010 12:40:39 UTC