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 209068 - Class 'only' in CSS causes unexpected token ONLY found error
Summary: Class 'only' in CSS causes unexpected token ONLY found error
Status: RESOLVED DUPLICATE of bug 231249
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-01 19:21 UTC by Deldadam
Modified: 2013-08-05 13:38 UTC (History)
0 users

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 Deldadam 2012-03-01 19:21:21 UTC
Dear All,

Please consider the following CSS rule:

div.only {
  margin: 3px;
}

NB reports 'Unexpected token ONLY found' for the above rule - indicating that the word 'only' can not be used as class name.

IMHO there are no reserved words for class names defined in current CSS 2.1 spec.
Even the word ID or class are valid, so you can use them as class names like:

div.class {
<some properties>
}

Regards,

Peter
Comment 1 Marek Fukala 2012-04-11 14:21:02 UTC
Valid issue. Caused by the css3 grammar not expecting ONLY token (beside other similar ones) in such place
Comment 2 Deldadam 2012-09-23 17:07:14 UTC
Hm, 'target milestone' reached, problem not yet fixed :)

Cheers,

Peter
Comment 3 Marek Fukala 2013-08-05 13:38:47 UTC

*** This bug has been marked as a duplicate of bug 231249 ***