问题
I tried to open http://jsfiddle.net/ in IE8 with BrowserMode-- IE8
and Document Mode--IE8
in developer tools. In other browsers it's working fine, and even in IE9 it's working fine. But I see javascript errors in IE8 and older versions of IE
.
SCRIPT1010: Expected identifier
EditorCM.js?Spring, line 105 character 25
SCRIPT438: Object doesn't support property or method 'addEventListener'
heyoffline.js?Spring, line 24 character 5
SCRIPT5009: 'MooShellEditor' is undefined
jsfiddle.net, line 91 character 7
SCRIPT5007: Unable to get value of the property 'editor': object is null or undefined
Actions.js?Spring, line 130 character 5
this is how it's rendered in IE8
Is jsfiddle working with IE8 and older versions?
回答1:
You can find more info here. In short:
For all unsupported browsers (like IE8 or mobile phones) please use DRAFT feature.
- Log in to the service on your favourite browser.
- Create fiddle and Run it
- On IE8 open the http://jsfiddle.net/draft/
回答2:
Create your jsfiddle on a modern browser then when you want to test on IE8 use the full screen link.
Share > Share full screen result.
来源:https://stackoverflow.com/questions/15260947/why-jsfiddle-is-not-rendering-at-all-in-ie8-and-previous-versions