Lines 272-284
Link Here
|
272 |
* Handles the following cases: <script |
272 |
* Handles the following cases: <script |
273 |
* type="javascriptype"> <script language="javascriptype> |
273 |
* type="javascriptype"> <script language="javascriptype> |
274 |
* <script src='' type=javascriptype> <script src='' |
274 |
* <script src='' type=javascriptype> <script src='' |
275 |
* language=javascripttype <script src=''> global js type. |
275 |
* language=javascripttype <script src=''> global js type. |
276 |
* <script> (global js type) |
276 |
* <script> (global js type) |
277 |
*/ |
277 |
*/ |
278 |
if (NodeHelper.isInArray(JsDataTypes.JSVALIDDATATYPES, nh.getAttributeValue("type")) || NodeHelper.isInArray(JsDataTypes.JSVALIDDATATYPES, nh.getAttributeValue("language")) || isGlobalJs()) { //$NON-NLS-1$ //$NON-NLS-2$ |
278 |
if (NodeHelper.isInArray(JsDataTypes.JSVALIDDATATYPES, nh.getAttributeValue("type")) || NodeHelper.isInArray(JsDataTypes.JSVALIDDATATYPES, nh.getAttributeValue("language")) || (nh.getAttributeValue("type")==null && nh.getAttributeValue("language")==null && isGlobalJs())) { //$NON-NLS-1$ //$NON-NLS-2$ |
279 |
if (nh.containsAttribute(new String[] { "src" })) { //$NON-NLS-1$ |
279 |
if (nh.containsAttribute(new String[] { "src" })) { //$NON-NLS-1$ |
280 |
// Handle import |
280 |
// Handle import |
281 |
translateScriptImportNode(getCurrentNode()); |
281 |
translateScriptImportNode(getCurrentNode()); |
282 |
} |
282 |
} |
283 |
// } else { |
283 |
// } else { |
284 |
// handle script section |
284 |
// handle script section |