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 104286 - "<" and ">" should not be highlighted as error in embedded CSS
Summary: "<" and ">" should not be highlighted as error in embedded CSS
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 101616 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-18 15:49 UTC by Jindrich Sedek
Modified: 2007-10-31 19:19 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 Jindrich Sedek 2007-05-18 15:49:16 UTC
use this style definition in HTML editor:
=======================
        <style type="text/css">
            
            Q:lang(en){ 
            quotes: '<<' '>>'
            }
        </style>
=======================
syntax error is shown, but it's correct style definition
Comment 1 Marek Fukala 2007-05-18 16:53:51 UTC
Likely an effect of issue #99526 and #87014
Comment 2 Marek Fukala 2007-07-10 17:20:38 UTC
I'll try to do similar fix as for <script/> tag - the HTML lexer ignores everything after <script> tag until it finds
end of the script and make everyting one token. This should help to fix this problem. In the ideal world the fix of
#87014 should fix this as well.
Comment 3 Marek Fukala 2007-07-10 17:41:50 UTC
*** Issue 101616 has been marked as a duplicate of this issue. ***
Comment 4 Jindrich Sedek 2007-09-04 12:48:16 UTC
special HTML characters (&, <, ...) are also marked as syntax error while they are used in CSS (even in comments)

-----------------------
<style>
/*  company & spol. */
</style>        
-----------------------
Comment 5 Marek Fukala 2007-10-20 14:35:02 UTC
fixed

Checking in HTMLSyntaxSupport.java;
/cvs/html/editor/lib/src/org/netbeans/editor/ext/html/HTMLSyntaxSupport.java,v  <--  HTMLSyntaxSupport.java
new revision: 1.38; previous revision: 1.37
done
Checking in HTMLCompletionQuery.java;
/cvs/html/editor/lib/src/org/netbeans/editor/ext/html/HTMLCompletionQuery.java,v  <--  HTMLCompletionQuery.java
new revision: 1.41; previous revision: 1.40
done
Comment 6 Marek Fukala 2007-10-20 14:42:33 UTC
oops, wrong files - the fix is:
Checking in api/html/lexer/HTMLTokenId.java;
/cvs/html/lexer/src/org/netbeans/api/html/lexer/HTMLTokenId.java,v  <--  HTMLTokenId.java
new revision: 1.12; previous revision: 1.11
done
Checking in lib/html/lexer/HTMLLexer.java;
/cvs/html/lexer/src/org/netbeans/lib/html/lexer/HTMLLexer.java,v  <--  HTMLLexer.java
new revision: 1.23; previous revision: 1.22
done
Comment 7 Jindrich Sedek 2007-10-31 19:19:43 UTC
verified.
NetBeans IDE Dev (Build 200710310000)