IE conditional comments do not work in JSF page in JBoss EAP
Issue
- We seem to have encountered a bug in JBoss with the handling of 'Internet Explorer Conditional Comments', The use of the follwing code does not work as expected:
<!--[if IE 8]><link rel="stylesheet" href="#{resource['css/intranet:ie8.css']}" type="text/css" media="screen" /><![endif]-->
<!--[if lte IE 7]><link rel="stylesheet" href="#{resource['css/intranet:ie7.css']}" type="text/css" media="screen" /><![endif]-->
<!--[if lte IE 6]><link rel="stylesheet" href="#{resource['css/intranet:ie6.css']}" type="text/css" media="screen" /><![endif]-->
- We suspect that the ">" and "<" characters are being escaped internally. If we run this code, the code itself is displayed in the browser window, visible for the user.
<!--[if IE8]><link rel="stylesheet" href="/test/javax.faces.resource/ie8.css.jsf?ln=css/intranet" type="text/css" media="screen" /><![endif]-->
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.x
- 5.x
- Java Server Faces (JSF)
- Internet Explorer Conditional Comments
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
