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 166359

Summary: Problems with inline JavaScript and inline PHP code
Product: javascript Reporter: testerro <testerro>
Component: EditorAssignee: Marek Fukala <mfukala>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: ellisgl, g11n, pjiricka, tslota
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description testerro 2009-06-01 17:38:35 UTC
I'm using Netbeans 6.7 RC1 with the PHP plugin. In my PHP project I create an empty file and paste the following contents:

<html>
  <head><title>Test</title></head>
  <body>
    <form action="">
      <input type="button" onclick="window.location='test2.php';" value="Button" />
    </form>
  </body>
</html>

Netbeans complains that I have an error in the line where the form button is defined:

unterminated string literal

syntax error
Comment 1 Masaki Katakai 2009-06-02 07:20:12 UTC
This issue happens generally in JSP and HTML files. Should we
move to other component? html or javascript?

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
   <head>
     <title></title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   </head>
   <body>
     <input type="button" onclick="alert('test');"/>
   </body>
 </html>
Comment 2 Tomasz Slota 2009-06-02 13:55:35 UTC
the problem seems to be located in the JavaScript support
Comment 3 Masaki Katakai 2009-06-04 02:10:08 UTC
Regression from Beta.

When I just tried to create Rails project, it shows error in index.html.
I didn't see it on 6.7 Beta.

        <div id="about">
          <h3><a href="rails/info/properties" onclick="about(); return false">About your application&rsquo;s
environment</a></h3>
          <div id="about-content" style="display: none"></div>
        </div>
       
Comment 4 Martin Schovanek 2009-06-04 11:05:26 UTC

*** This issue has been marked as a duplicate of 166460 ***