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 226520 - HTML inside <script> tag is shown as an error
Summary: HTML inside <script> tag is shown as an error
Status: RESOLVED WORKSFORME
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-22 10:30 UTC by mediacept
Modified: 2013-03-18 06:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (68.83 KB, text/plain)
2013-02-22 10:30 UTC, mediacept
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mediacept 2013-02-22 10:30:18 UTC
Product Version = NetBeans IDE 7.3 (Build 201302132200)
Operating System = Linux version 3.2.0-36-generic-pae running on i386
Java; VM; Vendor = 1.6.0_27
Runtime = OpenJDK Client VM 20.0-b12
Comment 1 mediacept 2013-02-22 10:30:23 UTC
Created attachment 131723 [details]
IDE log
Comment 2 mediacept 2013-02-22 10:32:49 UTC
<script id="url-info-template"  type="text/x-handlebars-template">
<label class='title'>{{title}}</label>  
    <a class='url'  href='{{url}}'  target='blank'> {{short_url}} </a>
    <label  class='desc'>{{{description}}}</label>
    <label  id='showImages'   style='float:left; vertical-align: middle;'>
        <label style='float:left; display: inline-block;margin: 0; padding: 0; line-height: auto;height: auto; vertical-align: middle;' > <label id='prev' alt=''> </label><label id='next' alt=''></label> </label>
        <label class='totalimg'>
            <label style='float:left;  vertical-align: middle;margin: 0; padding: 0;'>
                <label id='current-image' style='font-size:9px; display: inline-block; vertical-align: middle;'></label>
                <label id='of-image' style='font-size:9px; display: inline-block; vertical-align: middle;'></label>
                <label id='last-image' style='font-size:9px; display: inline-block; vertical-align: middle;'></label>
                <label id='choose-image' style='font-size:9px; color: gray; display: inline-block; vertical-align: middle;padding-left: 10px; padding-right: 10px;'></label>
            </label>
        </label>
    </label>
    <p id = 'label_checkbox_pair' >
        <input type= 'checkbox' id = 'nothumb' />
        <label for= 'nothumb'> No thumbnail </label>
    </p>
</script>
Comment 3 c69 2013-02-23 16:32:22 UTC
Cannot confirm for NB7.3 Windows 7 64bit, Java 7,
 neither example by mediacept, nor my own templates (<script type="text/x-jquery-tmpl">) trigger any warnings or errors.

But when you put type to "text/javascript" you will see unexpected character error (which is the correct behaviour, imho).
Comment 4 Vladimir Riha 2013-02-25 07:45:04 UTC
works for me as well in 7.3 and dev build. I do not think this is P1, maybe not even P2



Product Version: NetBeans IDE 7.3 (Build 201302132200)
Product Version: NetBeans IDE Dev (Build web-main-9967-on-20130225)

Java: 1.7.0_15; Java HotSpot(TM) Client VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_15-b03
System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb)
Comment 5 Vladimir Riha 2013-03-18 06:37:34 UTC
still works for me, no response from reporter, closing as WORKSFORME


Product Version: NetBeans IDE Dev (Build 201303172300)
Product Version: NetBeans IDE 7.3 (Build 201303141828)

Java: 1.7.0_17; Java HotSpot(TM) Client VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_17-b02
System: Linux version 3.2.0-38-generic-pae running on i386; UTF-8; en_US (nb)