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 - Problems with inline JavaScript and inline PHP code
Summary: Problems with inline JavaScript and inline PHP code
Status: RESOLVED DUPLICATE of bug 166460
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-01 17:38 UTC by testerro
Modified: 2009-06-04 11:05 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***