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

Summary: JavaScript braces do not match correctly if they contain an EL expression
Product: web Reporter: brettryan <brettryan>
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: unmatched brace
matched brace
matched brace 2

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