« March 2010 »
M T W T F S S
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

This is hot

Upgrade VIA Epia-Board to current 2.6.28.7
99 times viewed
23.02.2009 18:41
t3blog Update to version 0.8.1 (Security, Bugfixes)
52 times viewed
03.02.2010 14:33
LaTeX Font Selection
24 times viewed
29.01.2010 17:17
linux.bigga.de now with RSS Feed
21 times viewed
25.11.2009 09:36

[blog...]

Currently the posts are filtered by: msie
Reset this filter to see all posts.

14.01.2010
11:01

MSIE Compatibility Meta Flag in Typo3

If Microsoft Internet Explorer find an error in your (Typo3-) website, it changes back to a compatibility mode. So it tries to show the page in IE 7 or 6 style.

Nobody really wants to see his page in these broken browsers!

The Internet Explorer understands for this case a meta-flag in the page head which informs about the browser version this page is developed for.

 

In short: Microsoft didn't understand HTML. But that's not new. You have to adjust all your settings for a specific Microsoft browser version _and_ you have to tell the browser which version you thought about.

 

I prefer to tell the visitor that my page is intended for the cutting edge browser, so I add for Internet Explorer visitors the following tag:

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

 

It's usually no problem to add new header elements to the typo3 page. But typo3 inserts these tags _after_ all other meta tags, the title tag and all link tags.

Surprise, surprise: Microsoft doesn't understand it's own meta tag if it's placed after the link tags! Don't now why, but Microsoft just tells you to place it "before all other elements".

And now, it's getting complicate in Typo3. My solution is to change the headTag (<head>) into the following:

page.headTag (     <head>      <meta http-equiv="X-UA-Compatible" content="IE=edge" />   )

 

Now the small image compatibility mode just right of the address bar in the IE disapears. Great!

 

By the way: The Typo3 backend of version 4.3.0 has problems with the switch to the compatibility mode. See Bug 11968.

back

[ 09.03.2010 ]