JSF2.1.7呈现<! - [if IE]>标记为文本 [英] JSF2.1.7 renders <!--[if IE ]> tag as text

查看:148
本文介绍了JSF2.1.7呈现<! - [if IE]>标记为文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们将JSF升级到最新版本2.1。以前我们在JSF2.0.4。我们的xhtml页面有Targeting IE使用条件注释标记,它们没有呈现为文本。

We upgraded our JSF to latest version 2.1. previously we were in JSF2.0.4. Our xhtml pages has Targeting IE Using Conditional Comments tag,which were not rendered as text.

但是使用新的JSF2.1.7,这将在IE中呈现为文本。任何想法如何解决这个问题?

But with new JSF2.1.7 this is being rendered as text in IE . Any ideas how to get around this issue?

推荐答案

使用< h:outputText escape =false > 代替。

<h:outputText value="&lt;!--[if IE]&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;ie.css&quot;/&gt;&lt;![endif]--&gt;" escape="false" />

这篇关于JSF2.1.7呈现&lt;! - [if IE]&gt;标记为文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆