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 226255 - JavaScript braces do not match correctly if they contain an EL expression
Summary: JavaScript braces do not match correctly if they contain an EL expression
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.3
Hardware: All All
: P4 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-18 08:04 UTC by brettryan
Modified: 2014-10-06 13:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
unmatched brace (7.15 KB, image/png)
2013-02-18 08:05 UTC, brettryan
Details
matched brace (7.18 KB, image/png)
2013-02-18 08:05 UTC, brettryan
Details
matched brace 2 (6.51 KB, image/png)
2013-02-18 08:05 UTC, brettryan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description brettryan 2013-02-18 08:04:27 UTC
Consider the following HTML with JS call containing an EL to the JS argument

    <a href="#" onclick="editItem(${a})"></a>

If you place your cursor at the first parentheses after 'editItem' note the parentheses both highlight yellow. Place your cursor at the closing parentheses and note that it will highlight red indicating it is in error.

Remove the EL expression or replace it with a valid JS term and the parser works correctly.
Comment 1 brettryan 2013-02-18 08:05:03 UTC
Created attachment 131518 [details]
unmatched brace
Comment 2 brettryan 2013-02-18 08:05:20 UTC
Created attachment 131519 [details]
matched brace
Comment 3 brettryan 2013-02-18 08:05:35 UTC
Created attachment 131520 [details]
matched brace 2