[ http://issues.apache.org/jira/browse/BEEHIVE-410?page=history ]
Alejandro Ramirez reassigned BEEHIVE-410:
-----------------------------------------
Assign To: Krista Baker (was: Alejandro Ramirez)
Please Verify.
> netui:scriptBlock invalid javaScript when begin and end tag are on same line
> ----------------------------------------------------------------------------
>
> Key: BEEHIVE-410
> URL: http://issues.apache.org/jira/browse/BEEHIVE-410
> Project: Beehive
> Type: Bug
> Components: NetUI
> Versions: V1
> Reporter: Krista Baker
> Assignee: Krista Baker
> Attachments: index.jsp
>
> When using the <netui:scriptBlock> tag, if any of the enclosed/user input
> javaScript is contained on the same line as the end tag </netui:scriptBlock>,
> the generated javaScript will be invalid.
> Browser Behavior: Mozilla Firefox will show a JavaScript syntax error,
> Netscape does not execute the JS but also does not show an error and IE will
> show a JS error when the action is attempted to be executed.
> Code snippet:
> <netui:scriptBlock>function swapImage(control, image){
> alert('here') };</netui:scriptBlock>
> Expected Results:
> The end tag should insert a line break similar to the one placed after the
> <netui:scriptBlock> start tag.
> Expected Generated JavaScript:
> <script language="JavaScript" type="text/JavaScript">
> <!--
> function swapImage(control, image){
> alert('here');}
> -->
> </script>
>
> Actual Results:
> A javaScript error is created because of the end comment (-->) is on the
> same line as the JavaScript.
> Actual Generated JavaScript:
> <script language="JavaScript" type="text/JavaScript">
> <!--
> function swapImage(control, image){
> alert('here');}-->
> </script>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira