This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 216658 - Embedded JavaScript not properly parsed
Summary: Embedded JavaScript not properly parsed
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-10 11:38 UTC by Jiri Skrivanek
Modified: 2012-10-11 10:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-08-10 11:38:12 UTC
JavaScript embedded in HTML file is not properly shown in navigator and coloring is broken if reference to .js file is added. To reproduce:

- create HTML Application project
- create new HTML file under Site Root
- add simple code like this to body
        <script>
            alert("Hello");
            a = 1;
        </script>
- but navigator doesn't show the JavaScript node
- add <script src="a.js"></script> above previously inserted code and coloring of JavaScript snippet is broken (all is black)

Product Version: NetBeans IDE Dev (Build EaselCSS-474-on-20120810)
Java: 1.7.0_06; Java HotSpot(TM) 64-Bit Server VM 23.2-b09
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 Marek Fukala 2012-10-08 13:48:56 UTC
the new html.navigator shows neither css nor javascript, this will hopefully be added in next version (feature).

As for the broken colorings, this has already been fixed in javascript.editor.