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

Summary: Embedded JavaScript not properly parsed
Product: web Reporter: Jiri Skrivanek <jskrivanek>
Component: HTML EditorAssignee: Marek Fukala <mfukala>
Status: VERIFIED FIXED    
Severity: normal CC: vriha
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

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.