Coding for IE10
Before I get to my question - I cannot access CF from work (it's blocked), so will not be able to respond while at work. I'll check in after I get home.
Now to the reason I'm here. I've been moved from my last civil service job to another civil service job where I'm supporting one single web app. Currently, only IE8 is officially supported (although we've had few problems with FF or Chrome.) It's been around long enough that we just recently stopped supporting IE7! We've had a few grumbles about not supporting IE7, but that is to be expected.
However, the higher-ups have decided that we are going to completely skip IE9 support and go straight for IE10.
So, my question is: What do we need to look for in order to make our app work in both IE8 and IE10?
It's my understanding that conditional code will no longer work in IE10. So, other than instructing our users to put IE10 in compatibility mode (which, let's face it, isn't really compatible), what coding suggestions will make this as seamless as possible for IE8 & 10 users?
To me your question feels a little weird because for my understanding and practice the question what to do to support a moderately recent and a very recent version of a browser was never a concern. If you write clean (and ideally semantic) code you will barely have any problems in any fairly recent browser. HTML and CSS wise IE 10 supports everything IE 8 or IE 9 support, and even more. So if your site works in IE 8 it should also work in IE 9 and IE 10 without doing anything special (unless you were completely relying on conditional comments which is an indication that the code isn’t written very well anyway). Also, IE 10 is just as good as recent Gecko or Webkit browsers so, again, for me your question doesn’t really make sense because support for IE 10 is not a concern if a website works in other modern browsers.
Hi, VIPStephan. Thanks for your reply.
I've been doing a lot of looking around on Google for IE8 vs IE9 vs IE10, and I've seen a lot of complaints of how IE10 has been breaking the formatting of websites that render fine in IE8, IE9, FF, and Chrome. Not just personal sites, mind you; everything, including the Microsoft tech support pages, and some Microsoft blogs.
The app I am working on is used by many different organizations, each with their own internal network security settings and whatnot, which can make developing a bit of a pain, sometimes. The higher-ups just want to make sure that if/when an organization decides to upgrade all the browsers within their domain to IE10 that the app will render at least as close to how IE8 renders, if not exactly as IE8 renders. So I have volunteered to do research on any possible coding differences for IE10. Has anything in IE8 been deprecated in IE10? Has anything been added to IE10 that will work better than something similar in IE8?
And I know that all the Internet Explorer proponents will say "IE is DOM compliant, so code that works in FF or Chrome will work in IE", but that has rarely been my experience with IE. Seems like IE8 was slightly more DOM compliant than IE7; IE9 is slightly more DOM compliant than IE8, etc. Microsoft hasn't (for whatever reason) just gone as DOM compliant as FF/Chrome in one step; they are dragging it out, a little more with each iteration. They still (at least as far as IE8) have some proprietary CSS that only works in IE and nothing else. I think we've avoided that, but I've only been working on this app for a little over a month and have not seen every line of CSS, yet, so can't really say.
You don’t happen to have a link for us, do you?
I suppose you will only have problems if the application relies heavily on proprietary code. This is what you’ve gotta find out. Also, Microsoft provides virtualizations of Windows with different IEs installed so you can easily test your application beforehand.
Unfortunately, I cannot provide a link. This app is DoD use, only, and requires special clearance just to log on (there are no "demo" accounts.)
And about a week ago, someone from our team applied for clearance to have VMWare installed on our dev machines, so we can put different versions of IE in them, for testing. But, as I understand it, VMWare initially raised a lot of red flags during a security scan, so we're not sure if our request will be allowed.
We'll see what the virtualization brings, if anything. I know we got rid of IE7 specific code; not sure, yet, if there is anything else proprietary. I just want to get ahead of it and make sure we can support IE10, before giving it the thumbs up.
Thanks for your advice. It's always appreciated.