Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-1118

JavaScript validation continues to report a syntax error, even after error is corrected

    Details

    • Story Points:
      13

      Description

      The JavaScript parser will report a syntax error in code that functions properly.

      Steps to Replicate :

      1) Open Titanium Studio
      2) Open an empty HTML file and add the content :

      <html>
      <head>
      <script type="text/javascript">
      function alertMsg{alert("Popup");}
      </script>
      </head>
      <body>
      <form>
      <input type="button" value="Show alert box"
      onclick="alertMsg()" />
      </form>
      </body>
      </html>
      

      3) Note the syntax error on line 4 and add parameter parentheses after "alertMsg" to correct the error
      4) Note the editor continues to report a syntax error, save and preview the file

      Actual Results :

      The code functions successfully however is marked as syntactically erroneous.

      Expected Results :

      The editor should not report errors in valid code.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mxia Michael Xia
                Reporter:
                jwitt Joel Witt
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: