W3C home > Mailing lists > Public > public-html@w3.org > July 2009

Re: PHP code only allowed in XHTML 5?

From: Leif Halvard Silli <lhs@malform.no>
Date: Wed, 22 Jul 2009 11:38:43 +0200
Message-ID: <4A66DE23.5000902@malform.no>
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
CC: Toby A Inkster <tai@g5n.co.uk>, HTMLWG <public-html@w3.org>
Daniel Glazman On 09-07-22 10.47:

> Toby A Inkster wrote:
>> <p class="<?php echo 'foo';?>">
>> Invalid in both XHTML and HTML, but perfectly legal PHP. PHP's start 
>> and end markers are not real XML processing instructions. They just 
>> look a bit like them.
> They are real processing instructions and the current PHP start marker
> <?php was not the one early versions of PHP used.

OK - may be maybe I agreed too soon with Toby on exactly this 
point. ;-)

> It was changed to
> match SGML/XML PIs to allow editability in markup editors and wysiwyg
> editors.

Thanks for confirming how I suspected that this syntax was chosen!

> Breaking that compatibility is, IMHO, a serious error.

leif halvard silil
Received on Wednesday, 22 July 2009 09:39:30 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:51 UTC