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 237725 - Do not flag CSS class "or" as an error
Summary: Do not flag CSS class "or" as an error
Status: RESOLVED DUPLICATE of bug 231249
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-28 18:53 UTC by dharkness
Modified: 2013-10-29 08:03 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 dharkness 2013-10-28 18:53:27 UTC
At least for PHP projects, using the CSS class name/selector "or" in PHP, HTML and CSS files is flagged as an error. In the code below, "or" is underlined and the hover states "Unexpected token OR found":

* index.html

    <!DOCTYPE html>
    <html>
        <head>
            <title>My Page</title>
        </head>
        <body>
            <div class="or">Content</div>  <!-- hover over "or" -->
        </body>
    </html>

* index.css

    .or {                     // here too
        margin-top: 5;        // three errors here: WS, NUMBER, SEMI
    }

* index.php: same as .html

AFAIK "or" has not been added as a reserved word for CSS. In fact, there are none, and "or" matches the naming rules for selectors.

*** Note that this bug is *not* about the (expected) warning "Class or not found" because it is not defined in the same document. ***
Comment 1 Vladimir Riha 2013-10-29 08:03:17 UTC
Thank you for reporting

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