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 120946 - EL in html attr breaks JavaScript in the following attrs
Summary: EL in html attr breaks JavaScript in the following attrs
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on: 121046
Blocks:
  Show dependency tree
 
Reported: 2007-11-02 11:51 UTC by Martin Schovanek
Modified: 2008-02-27 13:03 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 Martin Schovanek 2007-11-02 11:51:16 UTC
[#20071102062308, jdk1.5.0]

to reproduce:
-------------
1) have .jsp like:
${'ok'}
<a onmouseover="var ok;" href="${'ok'}" onmouseout="var err1;">X</a>
<a onmouseover="var err2;" href="${'ok'}" onmouseout="var err3;">Y</a>
<script>
    var ok2;
</script>

ERROR:  the 'var err1-3' JavaScript sections are not recognized as JavaScript.
Comment 1 Marek Fukala 2007-11-03 21:22:59 UTC
reproducible, nasty - must be fixed
Comment 2 Marek Fukala 2007-11-05 18:14:37 UTC
This issue fill likely be fixed by fix of issue #121046
Comment 3 dynamite 2007-11-16 20:01:23 UTC
Issue 121046 has been fixed and var err1; seems to be parsed as JavaScript as there is a not-used squiggle under err1.

However, it does not have the background colour to indicate that JavaScript parsing is being used.
Comment 4 Marek Fukala 2008-02-25 17:34:32 UTC
fixed, works fine in the new GSF based editing support
Comment 5 Martin Schovanek 2008-02-27 13:03:36 UTC
v.