Community
Participate
Working Groups
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> <script type="text/javascript"> function c() { document.testForm.testInput.focus(); } </script> </head> <body> <form name="testForm"> <input name="testInput" type="text"> </form> </body> </html> A warning is given because testForm cannot be resolved and the call to focus() is marked as an error. I would expect that: - testForm and testInput could be resolved by the editor - the call to focus() did work, because JSDT should be able to infer that testInput is a Text object
IMHO this is a bug, not an enhancement request, because JSDT is marking as wrong some code that is not, with all the implications (i.e.: files are marked as with errors in the Package/Project Explorer, warnings are given when you try to commit them, and so on). Mauro.
Categorizing JSDT bugzillas for planning purposes.
*** Bug 327619 has been marked as a duplicate of this bug. ***