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

Bug 326818

Summary: [validation] Text after HTML style comment in JavaScript region marked as validation error
Product: [WebTools] JSDT Reporter: Chris Jaun <cmjaun>
Component: WebAssignee: Ian Tewksbury <itewksbu>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: ccc, cmjaun, itewksbu
Version: 3.2.3Flags: thatnitind: review+
Target Milestone: 3.2.2 P   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 326422    
Bug Blocks:    
Attachments:
Description Flags
patch none

Description Chris Jaun CLA 2010-10-01 17:00:51 EDT
+++ This bug was initially created as a clone of Bug #326422 +++

Fix for this bug is also needed in 3.2.3 and 3.3

+++ This bug was initially created as a clone of Bug #326303 +++

Currently the JSDT validator does not support text after a leading opening HTML style comment in a JavaScript region.  This scenario is stated as valid in http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.3

Example:

<script type="text/javascript">
<!--  to hide script contents from old browsers
var v = "foo";
// -->
</script>
Comment 1 Chris Jaun CLA 2010-10-01 17:07:11 EDT
Created attachment 180092 [details]
patch
Comment 2 Ian Tewksbury CLA 2010-10-05 08:17:40 EDT
*** Bug 326420 has been marked as a duplicate of this bug. ***
Comment 3 Carl Anderson CLA 2010-10-09 08:29:51 EDT
Committed to R3_2_2_patches