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

Bug 427160

Summary: jslint null reference occurs with .html file
Product: [ECD] Orion Reporter: Grant Gayed <grant_gayed>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: Michael_Rennie
Version: 5.0   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Grant Gayed CLA 2014-01-31 15:31:26 EST
- create an .html file with content:

<!--  -->
hello

- open it in the editor and jslintworker.js hits a null reference in the code marked below (stack is null, but it attempts to do a stack.length):

default:
    if (nexttoken.id === '(end)') {
        error("Missing '{a}'.", nexttoken,
                '</' + stack[stack.length - 1].value + '>'); // <----
    } else {
        advance();
    }
}
Comment 1 Michael Rennie CLA 2014-03-21 11:15:02 EDT
Bug 430301 removed jslint from parsing HTML files. I'm going to close this as worksforme.