Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318584

Summary: [jsdt] undeclared function call from a <script> tag, tolerated
Product: [WebTools] JSDT Reporter: vlad.balan Mising name <vlad.balan>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: RESOLVED INVALID QA Contact: Nitin Dahyabhai <thatnitind>
Severity: major    
Priority: P3 CC: thatnitind, vlad.balan
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.