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

Bug 332488

Summary: "application/ecmascript" not supported for script tags
Product: [WebTools] WTP Source Editing Reporter: Paul Davis <pauledavis>
Component: wst.htmlAssignee: Nick Sandonato <nsand.dev>
Status: RESOLVED FIXED QA Contact: Nick Sandonato <nsand.dev>
Severity: normal    
Priority: P3 CC: thatnitind
Version: unspecified   
Target Milestone: 3.3.1   
Hardware: All   
OS: All   
Whiteboard:

Description Paul Davis CLA 2010-12-13 19:49:27 EST
Build Identifier: 20100917-0705

The value "text/javascript" for the type attribute of the script tag is supported. However it is deprecated according to web standards.

The newer value for the attribute should be: "application/ecmascript".

With that value, syntax highlighting and auto-complete are lost.

Reproducible: Always

Steps to Reproduce:
1. Open a jsp (or html) page
2. Add a tag <script type="application/ecmascript">/* some script here */</script>
3. Notice, no syntax highlighting or autocomplete
Comment 1 Nick Sandonato CLA 2011-06-28 13:44:30 EDT
Updated our partitioner's list of mime types. This resolved the error with syntax highlighting and fundamentally enables JSDT's support for content assist; however, it seems like there is a JavaScript Model Exception when trying to invoke content assist in these new regions. I've opened Bug 350617 to accommodate this.