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 268323

Summary: Joined lexing inappropriate for data-bind sections
Product: javascript Reporter: Miloslav Metelka <mmetelka>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Miloslav Metelka 2016-10-03 14:42:17 UTC
Not sure if joined lexing is appropriate for data-bind sections content - please see one of the latest comments in #243651 for details.
Comment 1 Petr Pisl 2016-10-05 07:17:39 UTC
Probably this is not problem of knockout binding embedding itself. The problem is cased by the line 41, where is tag: 

<a class='list-group-item' data-bind="attr: { href: '<c:url value='/accounts/'/>' + ibuId + '/' + accountNumber + '/branches'}">

It's not fully clear to me, but is somehow connected with the refresh, which is forced from the jsp lexer, when a JSP / JSTL library is recognized on the page.In this case is used c:url, which is a JSTL tag. When is this tag recognized then is the token hierarchy rebuild and probably new embedding is create from the c:url tag. But this embedding brakes paring of single quotes and the lexing is broken.

It looks like the problem is only in jsp. If you put the same html code to a html or php, then it works correctly.