Sunday, May 12, 2024
121
rated 0 times [  122] [ 1]  / answers: 1 / hits: 16017  / 13 Years ago, fri, february 10, 2012, 12:00:00

I have developed my web application w/o testing it on IE. Though it worked fine on all the browsers viz. Chrome, Firefox, Safari but when it comes to IE there is a strange behavior.



Sometimes the app loads and some times a blank page is loaded as if none of the bind events had any effect.



And the lucky times when the app loads, the nav panel is partially missing. I can't show you the code right now coz I am not sure what part to show and where I am doing it wrong.



If anyone of you can provide me a checklist of what to check and what tools would be ideal for debugging on IE then it would be great.



And if anyone of you can tell me most common backbone.js bugs on IE then that too would help.



PS: Version of IE I am testing with: IE8


More From » internet-explorer

 Answers
27

Some issues in IE are:



Trailing commas on Objects:



E.g.



 App.model = Backbone.Model.extend({
url: /foo/bar,

validate: function() {
},
});


Should be:



 App.model = Backbone.Model.extend({
url: /foo/bar,

validate: function() {
}
});


The use of functions that are not available in IE such as lastIndexOf()



A third thing to check for is invalid HTML. IE can be particularly picky about your HTML structure. Be sure that all open tags either have a matching close tag, or are self closing with />



If you are using JSON methods such as JSON.parse() and JSON.stringify() then be sure to include a JSON library such as JSON2.


[#87543] Thursday, February 9, 2012, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
benitoh

Total Points: 150
Total Questions: 113
Total Answers: 104

Location: India
Member since Wed, Aug 26, 2020
4 Years ago
benitoh questions
Sun, Mar 21, 21, 00:00, 3 Years ago
Mon, May 13, 19, 00:00, 5 Years ago
;