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 199890 - Embedded JavaScript can be misinterpreted as XHTML for syntax checking
Summary: Embedded JavaScript can be misinterpreted as XHTML for syntax checking
Status: RESOLVED DUPLICATE of bug 152042
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-05 04:45 UTC by lvskiprof
Modified: 2011-11-16 16:42 UTC (History)
1 user (show)

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 lvskiprof 2011-07-05 04:45:29 UTC
I had a case where I had some JavaScript embedded in the <head> section and a for loop in there had a less-than sign misinterpreted as if it was the start of an XHTML tag.

The code looked something like this:

for (i = 1; i < 26; i++)
{
    do stuff...
}

The "i < 26" was flagged as a bad XHTML tag.

I either ignored it or put it in an external .js file so it would do only JavaScript syntax checking.
Comment 1 Marek Fukala 2011-11-03 16:08:17 UTC

*** This bug has been marked as a duplicate of bug 152042 ***