Steps to reproduce:
In the jsf-applicant-portlet's
applicant.xhtml, add the following:
<alloy:outputScript target="head"> // Note: this will not work on IE. Use Chrome or Firefox to test this. alert('The script\'s parent element is ' + document.currentScript.parentElement.tagName); </alloy:outputScript>
Deploy the portlet to Liferay Portal.
- Navigate to the portlet.
If the bug still exists, the following alert message will appear:
The script's parent element is DIV
If the bug is fixed, the following alert message will appear:
The script's parent element is HEAD
This issue will also affect
metal:outputStylesheet, and any other components which implement a
target="head" feature or are designed to be rendered in the
head section (except
h:outputStylesheet, those components work correctly).