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 98721 - comments with "&" is invalid recognize in <script>
Summary: comments with "&" is invalid recognize in <script>
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on: 99526
Blocks:
  Show dependency tree
 
Reported: 2007-03-22 18:04 UTC by Lukasz Grela
Modified: 2009-05-18 10:47 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 Lukasz Grela 2007-03-22 18:04:26 UTC
<script>
  
  // Yann LeCun & Florin Nicsa, 2003 -> editor signaling error

 </script>
Comment 1 Lukasz Grela 2007-03-27 11:01:43 UTC
changing status whiteboard
Comment 2 Lukasz Grela 2007-03-27 13:19:57 UTC
paste code depicted below, it is interpreted as having syntax error, it seems
because of char "&".

if (CzyToTenZnak(strzal) && (strzal.length==1)){
alert("ala");
}
Comment 3 Marek Fukala 2007-03-30 13:14:08 UTC
This issue depends on issue #99526. The HTML text token is divided by the &
character so the javascript embedding is created on these two html text tokens,
but schliemann parser doesn't parse it as one javascript block. For more info
read the issue #99526 description.

I could change the html lexer to not to break the text tokens when & char
appears, but it would mess the code quite much so for now, I rely on Hanz to fix
the mentioned issue (there is already an issue depending on it).
Comment 4 Marek Fukala 2007-07-04 14:58:54 UTC
already fixed.