Bug 240134 - [translation] Form and form fields cannot be resolved
Summary: [translation] Form and form fields cannot be resolved
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
: 327619 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-09 05:59 EDT by Mauro Molinari CLA
Modified: 2013-07-18 14:07 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mauro Molinari CLA 2008-07-09 05:59:14 EDT
<!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
Comment 1 Mauro Molinari CLA 2008-07-18 03:16:56 EDT
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.
Comment 2 Chris Jaun CLA 2009-09-15 10:40:49 EDT
Categorizing JSDT bugzillas for planning purposes.
Comment 3 Nitin Dahyabhai CLA 2011-06-30 17:32:19 EDT
*** Bug 327619 has been marked as a duplicate of this bug. ***