HTML Comment in JSF Templates is Partially Incorrectly Encoded (HTML special characters) (Doc ID 1564248.1)

Last updated on JUNE 26, 2013

Applies to:

Oracle Exalogic Elastic Cloud Software - Version 2.0.0.0.1 to 2.0.4.0.2
Oracle Weblogic Server - Version 12.1.1.0 and later
Information in this document applies to any platform.

Symptoms

You have migrated a JSF Web Application module from Websphere to Weblogic. There is an issue when having comments with special characters in a xhtml template (for example, a conditional comment for Internet Explorer). The special characters are partially replaced by an html encoded eqivalent (for example < instead of <).

The application works, but the partial comment of the <head> element is shown in the browser (Internet Explorer 9 on Windows 7).

Summary: With the implementation of JSF, when the xhtml is implemented with the conditional comments, the commented html tags is seen in .xhtml page as shown below:

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms