Re: HTML5 and XML syntax

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 UTC