views:

142

answers:

5

We are in the process of migrating an IE application to Firefox. Do you recommend a tool that can automate to a certain extent this process. Perhaps this tool could help us identify code that is browser specific. Do you see this as possible?

A: 

not enough details.

what part of the app depends on IE?

myfreeweb
this should have been a comment
Sarfraz
We are working on IE7 and higher but we plan to use FireFox. Chrome is very promising but it is still in its infancy when compared to IE or FF.
+4  A: 

Unfortunately there is no such tool focused on the migration of web applications to different browsers.

I suggest that you start by using a reset stylesheet.

A reset stylesheet will reduce browser inconsistencies like default line heights, margins and font sizes of headings. The reset stylesheet will not solve your problem, but at least it will help you avoiding the situation where you be will fixing your layout for the other browsers but to break it in IE.

Daniel Vassallo
Yep, start with the reset (which will probably break a lot of your existing layout) and start from the ground-up fixing one thing at a time, checking it in both browsers.
Diodeus
+4  A: 

There is no way to automate this task.

Introducing a reset stylesheet may be a good idea (I don't have much experience with them) but may require a lot of re-working on the IE end as well. I can't say how much.

Reset or not, the best thing to do is to set up Firefox with Firebug and Web Developer Toolbar, IETester, and IE 8 with its developer console. Grab a big cup of coffee and start working systematically through the aberrations. From experience, 80% of the problems are based on a very small number of CSS settings and will probably go away quickly. The other 20% will be the ones you might need the coffee for.

Make sure you establish browser specific style sheet files using conditional comments from the start.

Pekka
+1 for the big cup of coffee. I forgot that in my answer :)
Daniel Vassallo
+1  A: 

There is no tool as far as I know. If you're using any ActiveX components you will probably have a lot of work on your hands. If you're only having to re-style then you'll need to factor in what IE versions you're supporting at the moment. If you're using seperate stylesheets for IE6, 7 and 8 (or some combination) then you can normally seperate IE6 into 1 stylesheet and the other browsers into another stylesheet.

One of the key things to look at is the way the box model is different between IE and the rest of the browsers out there.

box model

If your application dosen't use CSS stylesheets then your in for some major headaches.

Really need more details to give you a more accurate diagnosis. What html elements does it use, does it use CSS, JavaScript, etc?

Edit: missed your tag for JavaScript - look at the different ways that browsers handle whitespace with JavaScript: Firefox and Whitespace

Alex
+1  A: 

A lot of people have recommended a reset stylesheet, however, I'd recommend you actually create your OWN reset-stylesheet and seed it explicitly with the defaults from IE. This will be redundant for IE, since it will default to those styles anyways, but is critical if you don't want to have to rework both your current IE implementation in addition to Firefox.

There's a link to a grid with IE default style settings here:

http://stackoverflow.com/questions/214378/how-can-i-locate-the-default-style-sheet-for-a-browser

Browsera