This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 147504 [details] project in zip file Please see attached HTML 5 application. A variable within the scope of an if{} block cannot be refactored safely, and the expected highlighting of uses of it does not work as expected.
Reproducible in 8.0 and Dev Workaround is to move variable declaration outside of if and else block (I believe JavaScript engine does the same actually thanks to hoisting)