Re: PHP code only allowed in XHTML 5?

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
editors.

Breaking that compatibility is, IMHO, a serious error.

</Daniel>

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