struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ekb...@apache.org
Subject svn commit: rev 56218 - struts/trunk/src/share/org/apache/struts/taglib/html
Date Mon, 01 Nov 2004 08:31:58 GMT
Author: ekbush
Date: Mon Nov  1 00:31:57 2004
New Revision: 56218

Modified:
   struts/trunk/src/share/org/apache/struts/taglib/html/JavascriptValidatorTag.java
Log:
Updated to pre-face opening and closing of CDATA section with JS
comments so we don't throw errors in the browser.

Thanks to Renee for telling us this was broke!


Modified: struts/trunk/src/share/org/apache/struts/taglib/html/JavascriptValidatorTag.java
==============================================================================
--- struts/trunk/src/share/org/apache/struts/taglib/html/JavascriptValidatorTag.java	(original)
+++ struts/trunk/src/share/org/apache/struts/taglib/html/JavascriptValidatorTag.java	Mon Nov
 1 00:31:57 2004
@@ -685,7 +685,7 @@
         sb.append(this.renderStartElement());
 
         if (this.isXhtml() && "true".equalsIgnoreCase(this.cdata)) {
-            sb.append("<![CDATA[\r\n");
+            sb.append("//<![CDATA[\r\n");
         }
 
         if (!this.isXhtml() && "true".equals(htmlComment)) {
@@ -754,7 +754,7 @@
         }
 
         if (this.isXhtml() && "true".equalsIgnoreCase(this.cdata)) {
-            sb.append("]]>\r\n");
+            sb.append("//]]>\r\n");
         }
 
         sb.append("</script>\n\n");

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message