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

Re: Validator fails on PHP instructions inside attribute values

From: Dag-Erling Smørgrav <des@des.no>
Date: Mon, 02 Aug 2010 14:40:05 +0200
To: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Cc: Philip Taylor (Webmaster, Ret'd) <P.Taylor@Rhul.Ac.Uk>, Richard Ishida <ishida@w3.org>, 'David Dorward' <david@dorward.me.uk>, www-validator@w3.org
Message-ID: <86d3u1jihm.fsf@ds4.des.no>
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 GMT

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