Community
Participate
Working Groups
the javascript code in org.eclipse.orion.client.editor >> web >> orion >> editor >> textMateStyler.js is not compatible with IE7 1) one problem is accessing string using var chr = str[i]; the correct form is: var chr = str.charAt(i); 2) can't count that JSON exists, this method is broken /** @private */ copy: function(obj) { return JSON.parse(JSON.stringify(obj)); }, Note that textmate styler won't work on any IE (including 9) if its html has this line: <meta content='IE=EmulateIE7' http-equiv='X-UA-Compatible'/> an example of webpage that always sets that is blogspot.com
Also Array.prototype.indexOf does not exist in IE7 mode. What a nightmare
I have a fix on this branch. This lets you run the TextMateStyler in IE7 mode. http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?h=bug370171_tms_ie7 I did not merge this into master because the monkey patching is ugly.
(In reply to comment #2) I merged the 'charAt' and 'JSON' related changes to master, because they are reasonable regardless of whether we support IE7 or not. http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=75ef765bdfe80db0a0be7fb2f8f39f690d2c77ad I moved the 'indexOf' monkey patch to a JavaScript 1.6 shim, but I did not merge the shim into master, since I'm not sure if IE7 support is critical enough to warrant including it.
IE7 is dead *balloons drop from ceiling* No one seems to care about this so I'm closing it.