History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-6080
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Maxim Mossienko
Reporter: Mikhail Gedzberg
Votes: 2
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

JavaScript inspection should be disabled in case of different script language

Created: 29 May 06 18:33   Updated: 09 Aug 08 00:43
Component/s: JavaScript
Fix Version/s: Diana 8733

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Duplicate
 
This issue is duplicated by:
IDEA-17926 VBScript treated as JavaScript Resolved

Build: 5,302
Fixed in build: 8,704


 Description  « Hide
<html>
<head>
<script type="text/vbscript">
BLA-BLA-BLA
</script>
</head>
</html>

 All   Comments   Work Log   Change History      Sort Order:
AlexL - 24 Sep 07 23:44
some older code uses language attribute instead of type attribute. {pre}
<script language="javascript">
BLA-BLA-BLA
</script>{pre}

Hopefully you will handle that case also.


Angel Municio - 16 Jul 08 19:39
I would like to add, that the <script> tag can also contain xml. For example:

<script type="text/xml" dojoType="dojoe.XmlScript">

<ui xmlns:xal="http://openxal.org/ui">

<dojoe.data.DocumentDataSource jsId="xmlCountriesStore" url="countries.xml" rootItem="country" sendQuery="true"/>

<dojox.grid.Grid id="xmlCountriesGrid" store="xmlCountriesStore" style="width: 45em; height: 20em;">
<thead>
<tr>
<th field="@abbr">Id</th>
<th field="@name">Name</th>
<th field="@capital">Capital</th>
</tr>
</thead>
</dojox.grid.Grid>

</ui>

</script>

This is valid and use by some open source projects to implement RIA web pages, like dojo.E. It would be nice if IntelliJ would not mark it as errors. Even better if it recognized that the type is "text/xml" and recognized the fact that the text between the opening tag and the closing tag must be valid xml.