2

I'm struggling to get a very "cleverly" coded JavaScript application working on Internet Explorer. It's currently working fine on IE7-8 but some scripts fail silently in IE9 and I haven't been able to figure out why yet. The project has a strict deadline approaching and I can't spare time for decent debugging so I'm considering forcing the page to be displayed in IE8 document mode.

This has been otherwise successful, but IE9 users who have ever touched their Document Mode selector and set it to IE9 mode aren't affected by the X-UA-Compatible meta tag and get a blank page. The IE8 document mode is shown as "default" in the Document Mode menu, but the one selected by the user seems to always override the one suggested by the page.

This question and it's accepted answer suggest that in IE8 the browser reverted to default document mode on page reload. Has this changed in IE9? Do I have any hope to reliably force IE8 document mode to IE9 users who have Developer Tools enabled?

Edit: I managed to fix the actual bug in time, but I'm leaving this question open because I'm still interested in an answer. The bug was related to IE9 claiming it supports CSS transitions but not providing a name for it's transitionEnd event.

Community
  • 1
  • 1
Kaivosukeltaja
  • 15,541
  • 4
  • 40
  • 70
  • 1
    Don't force people to use an old document mode. Fix the problem instead. – Eric May 23 '12 at 11:18
  • Is *very "cleverly" coded* the new way of saying buggy? – epascarello May 23 '12 at 11:32
  • Eric: Fixing the problem won't be a walk in the park. The project uses RequireJS and if I try to debug, the external scripts timeout and halt the execution. If I run it without debug, the execution just stops without any error messages. epascarello: It's my way of saying buggy, overly complicated and utterly unreadable. – Kaivosukeltaja May 23 '12 at 12:17
  • I'd also be very interested in an answer to this - I hope that it's like this so any "normal" IE9 user will still see the mode I set in the meta tag "X-UA-Compatible"... – RSeidelsohn May 29 '12 at 15:02

0 Answers0