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.
Summary: | for loop in javascript blocks in xhtml pages incorrectly mark '<' as correct syntax | ||
---|---|---|---|
Product: | javascript | Reporter: | robertmcauliffe <robertmcauliffe> |
Component: | Editor | Assignee: | Petr Pisl <ppisl> |
Status: | NEW --- | ||
Severity: | blocker | CC: | lvskiprof |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Correct XHTML, fails Netbeans error highlighting
Inorrect XHTML, passes Netbeans error highlighting useless prototype |
Description
robertmcauliffe
2008-10-31 21:38:15 UTC
Created attachment 73023 [details]
Correct XHTML, fails Netbeans error highlighting
Created attachment 73024 [details]
Inorrect XHTML, passes Netbeans error highlighting
We do not interpret the embedded javascript code now, should be easy to do in JsEmbeddingProvider. As for the missing error, you are right, but currently we have almost no error checks for XHTML :-| This looks like a problem with JS embedding into xhtml. Should be solved on the xhtml site. *** Bug 199890 has been marked as a duplicate of this bug. *** The first sample is now correctly as erroneous - complains about the unquoted "<" char in the script. Second issue is reproducible - needs to be fixed in JsEmbeddingProvider from javascript2.editor. Created attachment 129026 [details]
useless prototype
I created some kind of prototype, but finally I found out that it's unusable since we should be able to decode all special entities so probably some kind of better encoder class should be created. Anyway I was at least able to test out basic editor functionality with parts of created embeddings (not translatable to the original offset) and it looked to be working pretty well.
|