开发者

How do I prevent a locally stored XSLT rendered in IE8 defaulting to quirks mode?

I have some very simple xml and xslt documents, which render in IE8 in quirks mode. However, I can't seem to turn it o开发者_运维技巧ff. Adding

<meta http-equiv="x-ua-compatible" content="IE=edge" />

seems to have no effect.

Is it possible to make it display in IE8 Standards mode?


Try adding a proper doctype:

<xsl:output method="html" omit-xml-declaration="yes"
  doctype-system="http://www.w3.org/TR/html4/loose.dtd";
  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>

(I don't have an IE8 at hand so I cannot try - let me know if it works please ;) )

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜