Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353198 - False positive when validating JS within HTML attributes
Summary: False positive when validating JS within HTML attributes
Status: CLOSED DUPLICATE of bug 353209
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-27 06:50 EDT by Janek Lasocki-Biczysko CLA
Modified: 2011-07-27 13:41 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janek Lasocki-Biczysko CLA 2011-07-27 06:50:20 EDT
Build Identifier: 20110527214303

Any html attributes that reference DOM events (onclick, onmousedown, onsubmit) aren't validated properly when a return value is included.
The following error is displayed: 'Cannot return from outside a function or method.'

Reproducible: Always

Steps to Reproduce:
1. create a file with some HTML
2. add this: <form onsubmit="return false;"></form>
3. 'return false;' will get underlined and annotated with the error
Comment 1 Nitin Dahyabhai CLA 2011-07-27 13:41:44 EDT

*** This bug has been marked as a duplicate of bug 353209 ***