Re: [xml-dev] IE9 and application/xhtml+xml

From
Jirka Kosek <>
To
Jesper Tverskov <>
Date
2011-08-19T20:45:59Z
ID
<>
Thread
Re: [xml-dev] IE9 and application/xhtml+xml
On 19.8.2011 9:50, Jesper Tverskov wrote:
> All major browsers today support mimetype "application/xhtml+xml":
> IE9+, Safari, Firefox, Opera, Chrome. They all render XML webpages
> incrementally. Very nice.
> 
> They all, except IE9, show an error message if there is a well-formedness error.
> 
> But IE9 switches to HTML parsing instead of showing an error message!

No, IE9 stops processing and renders content before the first error.

> Question. IE9's behavior is in my opinion in opposition to what the
> spec demands. 

AFAIK no specification ever prohibited web-browser from trying to fix
broken XHTML by using different more lenient parser.

> I find it confusing but could
> it be the way forward to get "application/xhtml+xml" more widely
> adopted?

Maybe, but realistically what is advantage of serving web page as
application/xhtml+xml instead of text/html? Try to forget to XML bias
which most of xml-dev subscribers probably have. ;-)

				Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail:       http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------