Commits

Anonymous committed 02a7c83

Improve XHTML compliance. Fix for WW-549, part of WW-599.

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@485573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits 92285af

Comments (0)

Files changed (6)

src/java/template/simple/form-close.vm

 #if ($parameters.validate)
-    <script>
+    <script type="text/javascript">
     function ${parameters.name}_validate() {
         var form = document.forms['${parameters.name}'];
         var focus = ${parameters.name}_validate_actual();

src/java/template/simple/select.vm

         #end
 
         <option value="$!webwork.htmlEncode($itemKey)"
-            #if( $tag.contains($parameters.nameValue, $itemKey) )selected#end
+            #if( $tag.contains($parameters.nameValue, $itemKey) )selected="true"#end
         >$!webwork.htmlEncode($itemValue)</option>
 
         #set ($trash = $stack.pop())

src/test/com/opensymphony/webwork/views/jsp/ui/Formtag-2.txt

  <td align="right" valign="top"> <span class="label"> </span> </td>
  <td> <input type="text" name="user.name" value="Bobby" /> </td>
 </tr>
-<script>
+<script type="text/javascript">
 function myForm_validate() {
   var form = document.forms['myForm'];
   var focus = myForm_validate_actual();

src/test/com/opensymphony/webwork/views/jsp/ui/Formtag-2b.txt

  <td align="right" valign="top"> <span class="label"> </span> </td>
  <td> <input type="text" name="user.name" value="Bobby" /> </td>
 </tr>
-<script>
+<script type="text/javascript">
 function myForm_validate() {
   var form = document.forms['myForm'];
   var focus = myForm_validate_actual();
  <td align="right" valign="top"> <span class="label"> </span> </td>
  <td> <input type="text" name="user.name" value="Bobby" /> </td>
 </tr>
-<script>
+<script type="text/javascript">
 function myForm_validate() {
   var form = document.forms['myForm'];
   var focus = myForm_validate_actual();

src/test/com/opensymphony/webwork/views/jsp/ui/Select-1.txt

         >
             <option value="headerKey">headerValue</option>
             <option value=""></option>
-            <option value="hello" selected >world</option>
+            <option value="hello" selected="true" >world</option>
             <option value="foo" >bar</option>
         </select>
     </td>

src/test/com/opensymphony/webwork/views/jsp/ui/Select-2.txt

         <select name="collection"
                 multiple="multiple"
         >
-            <option value="hello" selected >world</option>
-            <option value="foo" selected >bar</option>
+            <option value="hello" selected="true" >world</option>
+            <option value="foo" selected="true" >bar</option>
             <option value="cat" >dog</option>
         </select>
     </td>