Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335590

Summary: [client] jslintPlugin.js calls document.addEventListener
Product: [ECD] Orion Reporter: Felipe Heidrich <eclipse.felipe>
Component: ClientAssignee: Project Inbox <e4.orion-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bokowski, mamacdon
Version: 0.2   
Target Milestone: 0.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Felipe Heidrich CLA 2011-01-27 11:42:47 EST
Trying to open a file in IE8 fails with error.
jslintPlugin.js has this code:
document.addEventListener("DOMContentLoaded", function() {
	var pluginData = {
		services : [{
			id : "JSLintEditorSyntaxChecker", 
			serviceType : {
				id: "IEditorSyntaxChecker", 
				interfaces : ["checkSyntax"]
			},
			properties: {}
		}]
	};
	var serviceProvider = new eclipse.JSLintServiceProvider();
	var jslintPlugin = new eclipse.Plugin(pluginData, serviceProvider);
	jslintPlugin.start();
}, false);

The problem is that in IE8 document does not have a addEventListener method.
Comment 1 John Arthorne CLA 2011-01-27 11:59:49 EST
(In reply to comment #0)
> Trying to open a file in IE8 fails with error.

For me the file opens fine. If I open the IE dev tools I can see that error in the console, but doesn't seem to affect ability to open/edit files for me.
Comment 2 Mark Macdonald CLA 2011-02-02 17:28:31 EST
This was fixed a few days ago