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

Re: PHP code only allowed in XHTML 5?

From: Thomas Broyer <t.broyer@ltgt.net>
Date: Wed, 22 Jul 2009 12:03:35 +0200
Message-ID: <a9699fd20907220303p193f6ecdt76250cca155823db@mail.gmail.com>
To: Leif Halvard Silli <lhs@malform.no>
Cc: HTMLWG <public-html@w3.org>
On Wed, Jul 22, 2009 at 11:30 AM, Leif Halvard Silli wrote:
>
> Do we want the anomaly that <?php ... ?> is valid XHTML 5, but invalid HTML
> 5?

Yes, just like:
 - <feed xmlns="http://www.w3.org/2005/Atom">
 - xmlns:foo="http://example.net"
 - <foo:bar />
 - <p />

> What about the UA support, should it be ignored?

Which UA support?
In text/html, <?php is parsed as a comment (and ends at the first ">"
on at least Firefox and Opera: try it with <?php echo "hello
<b>world</b>!"; ?>)

> What about current
> validators - Validator.w3.org and HTML Tidy? And so on. Should we pretend
> that support for <? > doesn't exist?

In "HTML as she is spoke"? yes.

-- 
Thomas Broyer
Received on Wednesday, 22 July 2009 10:04:15 UTC

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