I believe IE8 requires a different doctype, and that previous doctypes are now legacy in IE8. I suspect I am having problems with my site due to a legacy doctype. But I am uncertain what that doctype is.
Can someone tell me what it is or where to find information about it? I've been looking all over the place with the limited amount of time I have and have not found anything...
Well, I'm clearly showing my ignorance on this issue...
Is there a proper doctype to use then? I am using the .htaccess method to emulate IE7. However, I'd really prefer for my site to work in IE8 without the compaibility mode view. The only thing that is not working on it is some JavaScript. Are there are any good resources that talk about how to implement JavaScript in IE8 so that the site can run in IE8 without compatibility mode view?
Thanks!
03-24-2009, 01:07 AM
felgall
The HTML 4.01 strict doctype is still the latest one.
Most JScript should run the same in IE8 as it did in IE7 or IE6 so if you have something that is not working in IE8 but does work in other browsers then it is that particular code that would need fixing and exactly what the fix would be would depend on what it is supposed to be doing.
03-24-2009, 06:46 AM
TheBearMay
Javascript in IE8 does seem to generate more errors than before. Most of them appear to be things that FF didn't allow though, so if you were coding for FF compatibility there are a lot fewer. There are a few errors that FF is fine with though, and I'm trying to get a handle on what the pattern there is.
03-24-2009, 08:09 AM
zenthoef
Maybe someone can tell me what, if anything, is wrong with this JavaScript and associated HTML. This is basically a rollover for the titleX.jpg image and is coupled with the imagemenu at http://www.phatfusion.net/imagemenu/. I have made changes from the imagemenu code, but the bulk of what I am doing (especially from a JavaScript perspective) is below:
Here is the HTML from my site for the relevant part: