Author: musachy
Date: Sat Feb 24 08:49:02 2007
New Revision: 511302

URL: http://svn.apache.org/viewvc?view=rev&rev=511302
Log:
WW-1671 templates don't specify type="text/javascript"; break W3C validation

Modified:
    
struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/ajax/form.ftl
    
struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/css_xhtml/form-validate.ftl
    
struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/xhtml/form-validate.ftl

Modified: 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/ajax/form.ftl
URL: 
http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/ajax/form.ftl?view=diff&rev=511302&r1=511301&r2=511302
==============================================================================
--- 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/ajax/form.ftl
 (original)
+++ 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/ajax/form.ftl
 Sat Feb 24 08:49:02 2007
@@ -1,9 +1,9 @@
 <#if parameters.validate?exists>
-<script src="${base}/struts/validationClient.js"></script>
-<script src="${base}/dwr/interface/validator.js"></script>
-<script src="${base}/dwr/engine.js"></script>
-<script src="${base}/struts/ajax/validation.js"></script>
-<script src="${base}/struts/${themeProperties.parent}/validation.js"></script>
+<script type="text/javascript" 
src="${base}/struts/validationClient.js"></script>
+<script type="text/javascript" 
src="${base}/dwr/interface/validator.js"></script>
+<script type="text/javascript" src="${base}/dwr/engine.js"></script>
+<script type="text/javascript" 
src="${base}/struts/ajax/validation.js"></script>
+<script type="text/javascript" 
src="${base}/struts/${themeProperties.parent}/validation.js"></script>
 </#if>
 <form<#rt/>
 <#if parameters.namespace?exists>

Modified: 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/css_xhtml/form-validate.ftl
URL: 
http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/css_xhtml/form-validate.ftl?view=diff&rev=511302&r1=511301&r2=511302
==============================================================================
--- 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/css_xhtml/form-validate.ftl
 (original)
+++ 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/css_xhtml/form-validate.ftl
 Sat Feb 24 08:49:02 2007
@@ -1,5 +1,5 @@
 <#if parameters.validate?default(false) == true>
-<script src="${base}/struts/css_xhtml/validation.js" 
type="text/javascript"></script>
+<script type="text/javascript" src="${base}/struts/css_xhtml/validation.js" 
type="text/javascript"></script>
     <#if parameters.onsubmit?exists>
         ${tag.addParameter('onsubmit', "${parameters.onsubmit}; return 
validateForm_${parameters.id}();")}
     <#else>

Modified: 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/xhtml/form-validate.ftl
URL: 
http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/xhtml/form-validate.ftl?view=diff&rev=511302&r1=511301&r2=511302
==============================================================================
--- 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/xhtml/form-validate.ftl
 (original)
+++ 
struts/struts2/branches/STRUTS_2_0_X/core/src/main/resources/template/xhtml/form-validate.ftl
 Sat Feb 24 08:49:02 2007
@@ -1,5 +1,5 @@
 <#if parameters.validate?default(false) == true>
-       <script src="${base}/struts/xhtml/validation.js"></script>
+       <script type="text/javascript" 
src="${base}/struts/xhtml/validation.js"></script>
        <#if parameters.onsubmit?exists>
                ${tag.addParameter('onsubmit', "${parameters.onsubmit}; return 
validateForm_${parameters.id}();")}
        <#else>


Reply via email to