これはEclipseの私のソースコードファイルです:JSFでInternet Explorerの条件付きコメントを使用するには?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
</body>
</html>
私はIE9でこれを表示すると、それはテキストをレンダリング:
<!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->
私はソースを表示すると、それは言う:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
</body>
</html>
ソースが一度変更された理由は、Facesサーブレットによって提供されましたか?
醜い、地獄として、しかし、それは魅力のように動作します。ありがとう! –
スクリプトの部分をそこに入れる必要はありません。また、それを分割してscriptTagをoutputTextの外に保つこともできます。 –