On this page: Target audience: Users of the extension providing HTML5/JavaScript support for Web applications. |
Summary: This document provides basic information about the extension providing HTML5/JavaScript support for Web applications. |
What's new:
|
In what situation should you install this extension?
The analyzer could be used if your application is a Web Application, has HTML/Javascript/CSS files and/or contains HTML/Javascript fragments embedded into JEE and .NET files (for example).
The analyzer provides the following features:
Icon(s) | File | Extension | Note |
---|---|---|---|
HTML | *.html, *.htm, *.xhtml |
| |
![]() | Javascript | *.js | Supports:
See also JavaScript below for more information. |
Cascading Style Sheet | *.css | Supports CSS 1 - 3. | |
| Java Server Page | *.jsp | Supports JSP 1.1 - 2.3. See JSP below for more information. |
Active Server Page | *.asp, *.aspx | See (Classic) ASP below for more information. | |
HTML Components | *.htc | HTC files contain html, javascript fragments that will be parsed. Created objects will be linked to the HTC file. | |
ASP.NET MVC Razor | *.cshtml | See ASP.NET MVC Razor below for more information. |
Note that by default some files are automatically excluded from the analysis, typically third-party frameworks which are not required. Please see the filters.json file located at the root of the extension folder for a complete list of default exclusions. |
CAST AIP has provided support for analyzing JavaScript via its JEE and .NET analyzers (provided out of box in CAST AIP) for some time now. The HTML5/JavaScript extension also provides support for JavaScript but with a focus on web applications. CAST highly recommends that you use this extension if your Application contains JavaScript and more specifically if you want to analyze a web application, however you should take note of the following when using the extension with CAST AIP ≤ 8.2.x
Support of JavaScript in this extension
|
HTML5 source code: it represents the whole HTML file content.
CAST AIP has provided support for analyzing JavaScript via its JEE and .NET analyzers (provided out of box in CAST AIP) for some time now. The HTML5/JavaScript extension also provides support for JavaScript but with a focus on web applications. CAST highly recommends that you use this extension if your Application contains JavaScript and more specifically if you want to analyze a web application, however you should take note of the following:
Note that in CAST AIP ≥ 8.3.x support for analyzing JavaScript has been withdrawn from the JEE and .NET analyzers. |
Function Points (transactions) | Quality and Sizing |
---|---|
CAST AIP release | Supported |
---|---|
8.2.x | |
8.1.x | |
8.0.x | |
7.3.4 and all higher 7.3.x releases |
This extension is compatible with the following DBMS servers:
CAST AIP release | CSS2 | Oracle | Microsoft |
---|---|---|---|
All supported releases |
An installation of any compatible release of CAST AIP (see table above) |
Please see:
The latest release status of this extension can be seen when downloading it from the CAST Extend server. |
Please see: HTML5 and JavaScript - Packaging, delivering and analyzing your source code
Once the analysis/snapshot generation has completed, you can view the results in the normal manner:
Javascript ECMA6 Classes and Constructors example
The following objects are displayed in CAST Enlighten:
Icon | Description |
---|---|
![]() | JavaScript file |
![]() | HTML5 Source Code |
![]() | HTML5 CSS Source Code |
![]() | HTML5 CSS Source Code Fragment |
![]() | HTML5 JavaScript Source Code |
![]() | HTML5 JavaScript Source Code Fragment |
![]() | HTML5 JavaScript Source Code Fragment from JEE object |
Java Server Page (JSP) Content | |
Active Server Page (ASP) Content | |
Active Server Page .NET (ASPX) Content | |
HTML Component Content | |
Razor Template View | |
HTML5 JavaScript Function | |
HTML5 Javascript Method | |
HTML5 Javascript Class | |
HTML5 Javascript Class Constructor | |
![]() | HTML5 Web Socket Service |
![]() | HTML5 Get XMLHttpRequest Service HTML5 Get HttpRequest Service |
![]() | HTML5 Update XMLHttpRequest Service HTML5 Update HttpRequest Service |
![]() | HTML5 Post XMLHttpRequest Service HTML5 Post HttpRequest Service |
![]() | HTML5 Delete XMLHttpRequest Service HTML5 Delete HttpRequest Service |
The list of rules is available here: