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 - javascript incorrectly parses onclick event
Summary: javascript incorrectly parses onclick event
Status: RESOLVED WORKSFORME
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Windows XP
: P4 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-06 13:54 UTC by wcwilson1950
Modified: 2015-06-01 13:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)