Author: mwringe
Date: 2010-03-01 18:26:41 -0500 (Mon, 01 Mar 2010)
New Revision: 1920
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestContext.java
Log:
Set the transformer for the markupheaders to output html instead of xml. This will fix an
issue that arose with the script element self closing (GTNPORTAL-764). Note that this will
create html, and not xhtml, which will need to be fixed.
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestContext.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestContext.java 2010-03-01
23:13:03 UTC (rev 1919)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/application/PortalRequestContext.java 2010-03-01
23:26:41 UTC (rev 1920)
@@ -370,6 +370,7 @@
{
Transformer transformer = TransformerFactory.newInstance().newTransformer();
transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION,
"yes");
+ transformer.setOutputProperty(OutputKeys.METHOD, "html");
for (Element element : extraMarkupHeaders)
{