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.
Try following: function loadScript(src){ $("document").append("<script src='"+src+"'></script>"); } The terminating </script> causes errors and it is incorrectly recognized as HTML tag Product Version: NetBeans IDE Dev (Build EaselCSS-441-on-20120805) Java: 1.7.0_06-ea; Java HotSpot(TM) Client VM 23.2-b09 System: Linux version 3.0.0-23-generic running on i386; UTF-8; en_US (nb)
reproducible in HTML files, not in JavaScript files
This looks to me like HTML lexer/embedding issue - am I right, Marek?
reproducible - the html lexer doesn't interpret the content of the script so it doesn't know the </script> is a part of a string.
*** Bug 214060 has been marked as a duplicate of this bug. ***