Firefox 4 – AJAX JavaScript Execution

Upgraded to Firefox 4, it’s alright, may feel a bit faster (advertised placebo?). It looks a lot like Safari. I guess there is a convergence of best practices going on.

Anyway, here is the point of this post:

– Firefox 3: innerHTML will execute any JavaScript code inside it (normally loading via AJAX). Other browsers do not.
– Firefox 4: innerHTML will not execute JS code. Same as other browsers

Solution for those who needs this functionality: have to reorganize the code so that it calls back later, or manually extract and create nodes. But I guess it’s more consistent between browsers now. Enhanced security I guess

Man, these bugs are the worst, you just don’t know/remember what changes (your code, your external libraries, something else). Wasted couple hours just to get back to my last conclusion.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *