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 - Joined lexing inappropriate for data-bind sections
Summary: Joined lexing inappropriate for data-bind sections
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: All All
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-03 14:42 UTC by Miloslav Metelka
Modified: 2016-10-05 07:17 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 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.