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 203802 - Commented Javascript is being flagged as error
Summary: Commented Javascript is being flagged as error
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-17 08:31 UTC by lianhwang
Modified: 2012-09-14 08:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Ignore this attachment. Errorneous (12.42 KB, text/plain)
2011-10-18 01:48 UTC, lianhwang
Details
Error happens on line 11 (861 bytes, text/plain)
2011-10-18 01:57 UTC, lianhwang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lianhwang 2011-10-17 08:31:09 UTC
Commented Javascript is being flagged as error


//                    var link = "http:rctBarcodeTrans.action?barcode=" + document.forms[0]["barcode"].value +
//                        "&frDate=" + dojo.widget.byId("frDate").inputNode.value +
//                        "&toDate=" + dojo.widget.byId("toDate").inputNode.value;
//                    window.location = link;


The reference to "frDate" must end with the ';' delimiter ...
Comment 1 Petr Pisl 2011-10-17 10:31:21 UTC
I'm not able to reproduce it. Are you able to reproduce it again, or only when you comment out the lines? Thanks
Comment 2 lianhwang 2011-10-18 01:48:38 UTC
Created attachment 112154 [details]
Ignore this attachment. Errorneous

Error happens on line 11
Comment 3 lianhwang 2011-10-18 01:51:02 UTC
Comment on attachment 112154 [details]
Ignore this attachment. Errorneous

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <script>
                function onlyBarcode() {
                    var b = trim(document.forms[0]["barcode"].value);
                    if (b == "") {
                        return;
                    }
//                    var link = "http:rctBarcodeTrans.action?barcode=" + document.forms[0]["barcode"].value +
//                        "&frDate=" + dojo.widget.byId("frDate").inputNode.value +
//                        "&toDate=" + dojo.widget.byId("toDate").inputNode.value;
//                    window.location = link;
                }
                    for (var i = 0; i < applJsonObj.length; i++) {
                        var s = applJsonObj[i]
                    }
        </script>
    </head>
</html>
Comment 4 lianhwang 2011-10-18 01:57:45 UTC
Created attachment 112155 [details]
Error happens on line 11

Trying the attachment again ...
Comment 5 Petr Hejl 2012-09-14 08:45:45 UTC
Seems to be fixed for 7.3.