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 - Incorrect coloring/highlighting of unquoted CSS and JavaScript related attributes in HTML files (class, id, onclick, ...)
Summary: Incorrect coloring/highlighting of unquoted CSS and JavaScript related attrib...
Status: REOPENED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal with 1 vote (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-04 10:41 UTC by Marek Fukala
Modified: 2017-06-27 13:03 UTC (History)
2 users (show)

See Also:
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 (2.35 KB, image/png)
2017-06-26 21:14 UTC, stevenwdv
Details

Note You need to log in before you can comment on or make changes to this bug.
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