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

Summary: EL in html attr breaks JavaScript in the following attrs
Product: javaee Reporter: Martin Schovanek <mschovanek>
Component: JSPAssignee: Marek Fukala <mfukala>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 121046    
Bug Blocks:    

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.