Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332488 - "application/ecmascript" not supported for script tags
Summary: "application/ecmascript" not supported for script tags
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.html (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.3.1   Edit
Assignee: Nick Sandonato CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-13 19:49 EST by Paul Davis CLA
Modified: 2011-06-28 13:44 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.