W3C home > Mailing lists > Public > public-html-comments@w3.org > January 2008

Re: HTML5 and XML syntax

From: <temp17@staldal.nu>
Date: Tue, 29 Jan 2008 14:15:22 +0100
Message-ID: <479F26EA.8080805@staldal.nu>
To: public-html-comments@w3.org

Simon Pieters skrev:
>>>>> or just use the HTML-compatible subset of the XML syntax.
>>>>
>>>> That would work, but why doesn't the HTML5 WD recommend that?
>>>  Browsers won't parse text/html as XML, so taking the trouble to jump 
>>> through additional hoops would be a waste of authoring effort.
>>
>> That would make it possible (in most cases) to serve the same content 
>> as both text/html and application/xhtml+xml.
> 
> There are benefits and drawbacks with doing this.
> 
> Drawbacks:

As far as I can see, these drawbacks only occur if you actually serve 
the page with an XML media-type (application/xhtml+xml).

I can't see any drawbacks with using an XML compatible syntax with the 
text/html media-type.
Received on Tuesday, 29 January 2008 13:15:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 1 June 2011 00:13:58 GMT