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

Bug 484048

Summary: [tern] ESLint validation no longer runs on HTML files with <script> blocks
Product: [ECD] Orion Reporter: Curtis Windatt <curtis.windatt.public>
Component: JS ToolsAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Michael_Rennie
Version: 10.0   
Target Milestone: 11.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Curtis Windatt CLA 2015-12-09 15:07:36 EST
<html><head><script>function a(){}; var xx = 0;;;; a(); this.x;</script></head></html>

This should give me an ESLint warning about multiple semi-colons.  There are similar tests in validatorTests that are passing.  A quick debug shows the file.ast we are using to validate has no body (empty Program node).

Looks like our other tools are still working inside script blocks.

Another case to test:
<html><body onload="foo();;;"></body></html>
Comment 1 Olivier Thomann CLA 2015-12-10 12:38:59 EST
This will be fixed as part of the fix for bug 483607. I need to fix this in order to pass all tests after my changes for that bug report.
Comment 2 Olivier Thomann CLA 2015-12-10 15:36:31 EST
This is fixed with commit c48f2eac25f45e245dc864bd7e58bead36a0d97b.