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.

Bug 227103

Summary: javascript incorrectly parses onclick event
Product: javascript Reporter: wcwilson1950
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P4    
Version: 7.3   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description wcwilson1950 2013-03-06 13:54:19 UTC
The following line in a jsp file is flagged as an error:

<A href="javascript:document.forms[0].submit()" onclick="return verify(form1)" >Save</A> |

produces the following error message:

Expected } but found eof

Removing the onclick="return verify(form1)" attribute removes the error.
Comment 1 Roman Svitanic 2015-06-01 13:59:26 UTC
Cannot reproduce anymore on the current dev build.

Product Version: NetBeans IDE Dev (Build 20150601-b403da652e07)
Java: 1.7.0_80; Java HotSpot(TM) 64-Bit Server VM 24.80-b11
Runtime: Java(TM) SE Runtime Environment 1.7.0_80-b15
System: Mac OS X version 10.10.3 running on x86_64; UTF-8; en_US (nb)