gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

Javascript <script> tag is in <body> when using <sj:datepicker #925

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
(This is for feature requests and bugs in Struts2 jQuery Plugin - for
getting help, please use the User Group.
http://groups.google.com/group/struts2-jquery )

What steps will reproduce the problem?
1. use <sj:datepicker
2. load your page
3. Javascript <script> tag is in <body> when using <sj:datepicker

What is the expected output? What do you see instead?
<script> tag in <body> insted of <head>

Which struts2 version?
2.3.3

Which struts2-jquery plugin version?
3.4.0

Please provide any additional information below.
This issue gives Xhtml validation errors

Original issue reported on code.google.com by bek...@gmail.com on 29 Nov 2012 at 11:51

GoogleCodeExporter commented 9 years ago
A Script Tag is a valid tag also inside of the body. So this is not a problem.
But maybe the Script Content should be inside of a CDATA Block.

Original comment by johgep on 10 Dec 2012 at 12:40