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

Summary: Embedded JavaScript can be misinterpreted as XHTML for syntax checking
Product: web Reporter: lvskiprof <lvskiprof>
Component: HTML EditorAssignee: Marek Fukala <mfukala>
Status: RESOLVED DUPLICATE    
Severity: normal CC: lvskiprof
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

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 ***