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 218702 - Wrong coloring and occurences of JS source within html page
Summary: Wrong coloring and occurences of JS source within html page
Status: RESOLVED DUPLICATE of bug 219027
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-20 13:28 UTC by Martin Fousek
Modified: 2012-10-04 11:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
wrong occurence in html (213.81 KB, image/png)
2012-09-20 13:28 UTC, Martin Fousek
Details
html (1.60 KB, text/plain)
2012-09-20 13:29 UTC, Martin Fousek
Details
javascript from js folder (1.01 KB, application/javascript)
2012-09-20 13:29 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fousek 2012-09-20 13:28:49 UTC
Created attachment 124649 [details]
wrong occurence in html

I have following source in the .html page and take a look onto attached screenshot how is it colored:
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="author" content="Martin Fousek">
        <link rel="stylesheet" media="screen,projection,tv" href="css/layout.css" type="text/css"/>

        <script type="text/javascript" src="js/lib/jquery-1.8.1.js"></script>
        <script type="text/javascript" src="js/common.js"></script>
        <script type="text/javascript" src="js/productList.js"></script>
        <script type="text/javascript">
            // when the page is ready
            $(document).ready(function() {
                // get all JSONs data and fill up the content
                $.getJSON('data/Auction.json', { get_param: 'value'}, function(data) {
                    
                    productList = generateProductList();

                    $.each(data, function(index, element) {
                        product = generateProduct(element);
                        productList.append(product);
                    });

                    // append clearer to the content (to get correct borders)
                    productList.append($('<div/>', { class: 'clear'}));
                    
                    // append everything to the page
                    $('#content').append(productList);
                });
            });
        </script>
    </head>
    <body>
        <div id="header" class="container">
            <img src="img/app-logo.png" title="LiveDemo"  alt="LiveDemo" id="logo" />
        </div>
        <div id="content" class="container">
        </div>
    </body>
</html>
Comment 1 Martin Fousek 2012-09-20 13:29:16 UTC
Created attachment 124650 [details]
html
Comment 2 Martin Fousek 2012-09-20 13:29:36 UTC
Created attachment 124651 [details]
javascript from js folder
Comment 3 Martin Fousek 2012-10-04 11:39:37 UTC
Looks to be resolved together with fix for bug #219027.

*** This bug has been marked as a duplicate of bug 219027 ***