JSF 2.1 & IE Conditional Comments

后端 未结 1 645
时光说笑
时光说笑 2021-02-04 19:50

I\'ve noticed that in JSF 2.1.* my IE conditional comments are no longer working. Various characters are being replaced by HTML entities & invalidating the comment syntax.

相关标签:
1条回答
  • 2021-02-04 20:22

    Wrap it all in a <f:view> and define the namespaces there.

    <!DOCTYPE html>
    <f:view xmlns="http://www.w3.org/1999/xhtml" ...>
        ...
    </f:view>
    

    The entire JSF view is otherwise already implicitly wrapped in a <f:view>.

    0 讨论(0)
提交回复
热议问题