Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318584 - [jsdt] undeclared function call from a <script> tag, tolerated
Summary: [jsdt] undeclared function call from a <script> tag, tolerated
Status: RESOLVED INVALID
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-01 07:48 EDT by vlad.balan Mising name CLA
Modified: 2010-07-06 07:03 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vlad.balan Mising name CLA 2010-07-01 07:48:28 EDT
Build Identifier: helios for java ee 

i just see that, in a html file, a non declared function call like:

<script language="javascript">

inter(); //declared in test-html/webcontent/test.js, even if test.js 
         //not included with <script>
asa(); //non-declared function neither in test.js or test-js

</script>


is tolared. Is there an option to activate in the html validator to validate such undeclared function call from <script> blocks?

Reproducible: Always

Steps to Reproduce:
1. create a static web project with a html file
2. write the above code in the html file
3.
Comment 1 vlad.balan Mising name CLA 2010-07-01 08:00:15 EDT
I'm very sorry to have disturbed you. It is not valid.

I activated Window/Preferences/Validation/Client Side Javascript.


It now signals the error of non declared method.
Comment 2 vlad.balan Mising name CLA 2010-07-01 08:00:47 EDT
I'm very sorry to have disturbed you. It is not valid.

I activated Window/Preferences/Validation/Client Side Javascript.


It now signals the error of non declared method.