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.
references: http://www.w3.org/TR/SVG/script.html#ScriptElement http://www.ietf.org/rfc/rfc4329.txt <quot> This document defines equivalent processing requirements for the types text/javascript, text/ecmascript, and application/javascript. Use of and support for the media type application/ecmascript is considerably less widespread than for other media types defined in this document. Using that to its advantage, this document defines stricter processing rules for this type to foster more interoperable processing. </quot> work: <svg id="fooSvg" width="640" height="480" xmlns="http://www.w3.org/2000/svg"> <script type="text/javascript"> function bar() { //svg related stuff here } </script> <g> <title>Foo</title> <circle fill="#ff0000" stroke="#000000" stroke-width="5" r="10" cy="10" cx="10" id="fooCircle" /> </g> </svg> does not work: <svg id="fooSvg" width="640" height="480" xmlns="http://www.w3.org/2000/svg"> <script type="application/ecmascript"> function bar() { //svg related stuff here } </script> <g> <title>Foo</title> <circle fill="#ff0000" stroke="#000000" stroke-width="5" r="10" cy="10" cx="10" id="fooCircle" /> </g> </svg>
https://www.iana.org/assignments/media-types/media-types.xml text/javascript: "javascript - OBSOLETED in favor of application/javascript" application/javascript: "javascript" (the correct option, though not supported by MSIE < v.8: however over the next few years, this option might become a little more common. Netbeans/PHP: supports 1st option (officially obsolete), but does not support 2nd option in HTML/Javascript source, for code autocompletion purposes (the syntax checker seems not to understand it!)
If I don't see any movement on this issue within the next 12 months, I might change the Issue Type to "DEFECT" rather than "ENHANCEMENT".