Re: Validator fails on PHP instructions inside attribute values

Leif Halvard Silli <> 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 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.

Dag-Erling Smørgrav -

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