Wednesday, January 24, 2007

Content Types

I have been working hard on the Beta2 for MozzIE and have been looking at the content types we use. Found that the plug-in did not render .svg file so have added a content type for that.
The mechanism used by MozzIE to switch from the MSHTML Active Document to MozzIE is the one documented by Microsoft. It is a very open and easy to use technique that is well documented.
The technique and restrictions are well documented in this article
Changes to Functionality in Microsoft Windows XP Service Pack 2

As part of this we handle the following mime content types:
  • xhtml+xforms - application/xhtml+xml
  • xul - application/vnd.mozilla.xul+xml
  • svg - image/svg+xml
There is no technical reason why we could not handle xml as well, however the default behavior of Internet Explorer would need to change, which is something we have not wanted to do. All of the enhancements have added to IE, not removed any existing functionality.
So it is critical that web site authers wanting to use MozzIE set the content type correctly for the pages being served. Apache based servers do this fairly well, MS IIS sites need a bit of configuration however.
Possibly we will support more mime types as the project progresses. One idea is to add a custom page to the installer that allows an experienced user to select the mime types to be handled by MozzIE and those that stay with IE.
One issue not yet resolved is that when a file is opened, IE does doctype sniffing and sees most things as XML rather than using the content handler. We are working to find a solution to this, for now the only option is to download the file.

1 comments:

Steve Speicher said...

Excellent post, must have read my mind. I was getting ready to just ask about this. Perhaps it would be valuable instead of the install option have a preference page that would enable a user to change content type / MozzIE enablement.