Type: Technical Task
Affects Version/s: None
Section 18.2.1 of the HTML4 Specification titled "The SCRIPT element" states that the <script> start tag and the </script> end tag are both required.
The Liferay PortletResponseImpl.java class uses an XML Transform in order to create java.lang.String representations of org.w3c.dom.Element instances. Liferay depends on Apache Xalan in order to perform the transform, which is generating a self-closing <script /> tag.
Although this is a Portlet 2.0 feature, this problem was discovered by the Portlet 3.0 TCK in the following tests:
1. Download and deploy the attached com.liferay.issue.lps77798.portlet.war artifact
2. Add com.liferay.issue.lps77798.portlet to a portal page
3. Reload the page
The com.liferay.issue.lps77798.portlet indicates "script element was found in the DOM"
The com.liferay.issue.lps77798.portlet indicates "script element was NOT found in the DOM"