History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-16863
Type: Bug Bug
Status: Open Open
Assignee: Maxim Mossienko
Reporter: Gibson
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Good code is red: JavaScript

Created: 11 Jan 08 13:14   Updated: 12 Jan 08 15:33
Component/s: J2EE.JSP

Build: 7,590
Severity: Medium


 Description  « Hide
Idea doesn't like the for loop below, it thinks that there is an unclosed tag.
If I replace
for (i=0;i <someList.length ;i++)
with
for (i=0;i < someList.length ;i++)
(note space after the < symbol) then the red error goes away.
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>Simple jsp page</title></head>
<body>
<script language="JavaScript">var someList=["some", "thing"]
	for (i=0;i <someList.length ;i++)
	{
	document.write("The list item is " + someList[i]);
	document.write("<br/>");
	}
</script>
</body>
</html>


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.