I’m seeing a lot of Javascript errors in IE8 on pages which worked fine in IE7 (and Firefox, Chrome, and Safari). I know that IE made some changes to things like Javascript security. Some of these don’t give clear error messages – things like cross-domain violations can end up throwing very vague exceptions.
Let’s make a checklist of top offenders when we’re troubleshooting IE8 Javascript errors. Please list one change to the way IE8 Javascript that would cause a Javascript error.
I can verify that the ones posted by ‘unique_username’ are accurate!
(quote) Actually a TON of stuff has changed.
First off, it REALLY matters what mode you are in. In IE8, there are 3 (THREE) modes.
Now, if you are rendering in IE5/IE7 mode, then Nothing changes except that there will be a few methods added that shouldn’t interfere with your page.
However, if like the majority, you are running with a doctype set, and thus in IE8 Standards mode, the following changes have occurred.
2.)
.getElementsByName( name ); //now only returns the CORRECT matches!nope, not fixed!There has also been a bunch of CSS 2.1 fixes, so things that rendered weird before, or needed hacks, should be much better. (see below for details on alpha/transparency – there’s been big changes)
See the IE Blog for details.
Also see Web Bug Track for fine grained details on Bugs, Fixes for IE8 (and all other browsers)
SVG, rounded corners, ECMAScript based Event Listeners, Better Form Element design/events etc. are still missing.
PS If you have specific issues, let us know and we’ll help hunt them down for you. 😉
Updates:
window.resize events are currently broken in IE8 Beta2 and IE8 Partner Release 1 (will not fire)now fixed in RTM build