[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: IE9 and application/xhtml+xml

  • From: Jesper Tverskov <jesper.tverskov@gmail.com>
  • To: xml-dev@lists.xml.org
  • Date: Sat, 20 Aug 2011 00:34:22 +0200

Re:  IE9 and application/xhtml+xml
Thanks Jirka

I stated that all major browsers 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.

Jirka Kosek answered: "No, IE9 stops processing and renders content
before the first error."

That is correct, but there still is a mimetype problem. I used the
following test file having a well-formedness error and served it with
mimetype "application/xhtml+xml".

http://www.xmlplease.com/parsing/test/

It is true that IE9 renders the file until the error. I didn't notice
it the first time around because the error is almost at the end of the
file.

The switching of mimetypes, I based on the following:

I pressed F12 in IE9 to validate the file, and the validator reported
"text/html". I have now redone the test without the well-formedness
error. The validator still reports "text/html" when opened in IE9
first. If the file is validated directly, the validator reports valid
HTML5 served with mimetype "application/xhtml+xml".

We know now that IE9 switches mimetype from "application/xhtml+xml" to
"text/html" when you _validate_ a file served with
"application/xhtml+xml" in IE9 pressing F12.

The XML spec, 5.1, says: "Validating and non-validating processors
alike MUST report violations of this specification's well-formedness
constraints ..."

IE9 is in my judgement wrong, just rendering the webpage until the
error, not reporting the error.

Thanks for helping me sorting this out.

Cheers
Jesper Tverskov
http://www.xmlplease.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.