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

Re: PHP code only allowed in XHTML 5?

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Wed, 22 Jul 2009 10:47:05 +0200
Message-ID: <4A66D209.5070802@disruptive-innovations.com>
To: Toby A Inkster <tai@g5n.co.uk>
Cc: Leif Halvard Silli <lhs@malform.no>, HTMLWG <public-html@w3.org>
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. It was changed to
match SGML/XML PIs to allow editability in markup editors and wysiwyg

Breaking that compatibility is, IMHO, a serious error.

Received on Wednesday, 22 July 2009 08:47:45 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:48 UTC