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.
Product Version = NetBeans IDE 7.3 (Build 201302132200) Operating System = Linux version 3.5.0-25-generic running on i386 Java; VM; Vendor = 1.6.0_27 Runtime = OpenJDK Client VM 20.0-b12 For the following HTML snippet, an error is reported in the gutter (over line number) and text is underlined red for the line with the <script> tag. However, that line is, as far as HTML is concerned, plain text. Ergo, it should not report an error. ``` <!doctype html> <html> <form> <textarea> <script> function(){} </script> </textarea> </form> </html> ```
reproducible in trunk
Is fn w/o name valid? In any case this is javascript editor issue as the same error appears in pure js file with "function (){} " content.
(In reply to comment #2) > Is fn w/o name valid? In any case this is javascript editor issue as the same > error appears in pure js file with "function (){} " content. pls disregard :-)
You are right, textarea element's content type is text so the content should not be treated as html content and hence colored and parsed by javascript editor. However the javascript embedding creation inside the script section is now based on lexical analysis only so there's no info about the parent element. Creation of the js embedding based on parser analysis is not convenient - we've already tried before few years and returned back to lexical only analysis. In theory I could keep the lexical based js embedding creation and remove the embedding from such areas based on parser result, but it seems to be to be quite complicated solution for IMHO marginal issue. I'm downgrading this to P4 if you do not mind.