Re: PHP code only allowed in XHTML 5?

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