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 230527 - @charset in inline style is reported as an error
Summary: @charset in inline style is reported as an error
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-30 12:37 UTC by Petr Jiricka
Modified: 2014-10-06 13:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
HTML file exhibiting the problem (4.51 KB, text/html)
2013-05-30 12:37 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2013-05-30 12:37:42 UTC
Created attachment 135133 [details]
HTML file exhibiting the problem

On the following line in a HTML file, @charset is underlined as an error, and tooltip in the gutter says: Unexpected token CHARSET_SYM found

<style type="text/css">@charset "UTF-8";[ng\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak{display:none;}ng\:form{display:block;}</style>

I am attaching the entire file.
Comment 1 Marek Fukala 2013-06-04 15:26:09 UTC
The css virtual source in this case contains some css imports before the @charset which is required to be before them:
 
"@import "css/style.css";@charset "UTF-8";"
Comment 2 Marek Fukala 2013-07-02 11:40:40 UTC
Quite complicated fix - requires bit extensive changes in the grammar and all related code -> source model, css editor. Doesn't seem to have high priority to me.