Description

The new macro syntax activates the ugliest feature of IE called "MIME sniffing", when requesting Raw Text.

IE sees "<...>" and thinks it's actually text/html, not text/plain, and shows crap.

Steps to reproduce

Just see the Raw Text of this page.

Example

Component selection

Details

MoinMoin Version

1.6.x

OS

WinXP SP2

IE version

6.0 SP2, 7.0

Workaround

Annotation: You can also use the save-action to download/save the raw-text-file on your local disk. Opening this text-file with IE7 works surprisingly fine (whereas raw-action causes trouble as described above).

It is also possible in IE 7 to go into the security options for the appropriate zone (such as local intranet) and change the setting for "Open files based on content, not file extension" to disable. This page then renders correctly, but there is a yellow information bar warning saying that the content does not match its security information. Supposedly the "Open files based on content, not file extension" was added at IE 6 SP 2. It seems possible that for intranet based Wikis that the system administrator could force this change across the domain. -- JohnCarlson 2008-05-30 23:27:15

Alternatively one can modify the settings IExplore.exe and/or Explorer.exe in the registry under

HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\\FeatureControl\FEATURE_MIME_SNIFFING\

and/or

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_MIME_SNIFFING\

to 0 (null) in order to disable "MIME sniffing". Source: http://technet.microsoft.com/en-us/library/cc787872.aspx.

Discussion

This is definitely a IE bug (or rather a really bad "feature" - they should not try to make wild guesses if they already know the right content-type).

IE just ignores the correct Content-Type when it sees e.g. <Table (as in <<TableOfContents>>).

Moin emits a valid content-type header of text/plain, IE should not ignore this and try to make wild guesses.

Thus, we won't try to work around this problem in moin. If you like to implement some of the workarounds mentioned above and you need help, feel free to ask on #moin or here.

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/RawTextShowsCrapInInternetExplorer (last edited 2009-03-17 16:02:09 by vproxy01)