https://issues.apache.org/bugzilla/show_bug.cgi?id=45096

           Summary: Jasper compiler collapses script end tag into start tag
           Product: Tomcat 6
           Version: 6.0.16
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Given: a script element within the head element within a JSP document, which
includes a src attribute and no body 
(e.g. <script type="text/javascript" src="../script/menu.js"></script>)

Jasper compiles to: a single script element with the end delimiter included
(e.g. out.write("<script src=\"../script/menu.js\"
type=\"text/javascript\"/>"); )

which results in the following in the emitted HTML
(e.g. <script src="../script/menu.js" type="text/javascript"/>)

According to the specification for HTML 4, the end element is required.
See http://www.w3.org/TR/REC-html40/interact/scripts.html
i.e. the output HTML should be:
<script src="../script/menu.js" type="text/javascript"></script>

Firefox 3 RC1 will not display the page without the end element.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to