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 203030

Summary: Incorrect coloring/highlighting of unquoted CSS and JavaScript related attributes in HTML files (class, id, onclick, ...)
Product: web Reporter: Marek Fukala <mfukala>
Component: HTML EditorAssignee: Marek Fukala <mfukala>
Status: REOPENED ---    
Severity: normal CC: jeff_rubinoff, stevenwdv
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:
Attachments: See my comment, the first and last char of unquoted CSS and JavaScript related properies are not highlighted properly

Description Marek Fukala 2011-10-04 10:41:44 UTC
1) create an html file from template
2) add id=myid in the div element
=> the coloring of the myid attribute value is incorrect (first and last chars are not properly highlighted)
Comment 1 Marek Fukala 2011-10-04 11:41:19 UTC
+ the semantic highlighting doesn't work either
Comment 2 Marek Fukala 2011-10-04 11:42:25 UTC
both problems fixed in web-main#856b0ba0be30
Comment 3 Quality Engineering 2011-10-05 14:12:34 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/856b0ba0be30
User: Marek Fukala <mfukala@netbeans.org>
Log: #203030 - Incorrect coloring of unquoted ID and CLASS attributes in html files
Comment 4 stevenwdv 2017-06-26 21:10:22 UTC
I still have this issue in Netbeans 8.2 for Windows 10 x64 with JRE 1.8.0_101 x64.

I would like to add that this issue appears not only in unquoted HTML attributes with CSS-related content (class and id), but also attributes with JavaScript in them (onclick for example). I'll update the issue information and add a screenshot.
Comment 5 stevenwdv 2017-06-26 21:14:03 UTC
Created attachment 164635 [details]
See my comment, the first and last char of unquoted CSS and JavaScript related properies are not highlighted properly
Comment 6 stevenwdv 2017-06-27 13:03:09 UTC
Inline `style` attributes are also affected