我不相信这个和其他来源说的,但我错了吗?
编辑:不考虑IE,它是否仍然意味着当XHTML在HTML文档中定义时,它不是XHTML?喜欢那个人建议的?我目前的理解是,XHTML通常包含在HTML内容类型中。这意味着技术上你可以说XHTML只是HTML,除非使用正确的内容类型。但它仍然是XHTML语法,所以它有点令人困惑。
你可以在 digitalpoint论坛。
解决方案IE确实不支持 application / xhtml + xml 内容类型,而其他浏览器则将HTML处理为XML。当使用 text / html 时,每个浏览器都会将XHTML作为HTML来处理,而IE在这里不会有任何不同之处(从通常的怪癖中可以预料到)。
更多详情: hsivonen.iki.fi/doctype/
I'm having a rather heated debate into IE's XHTML Compatibility. The only thing is, I'm unsure if the guy is trolling.
Essentially he claims that IE has absolutely no XHTML compatibility, and that a document with a defined XHTML doctype means absolutely nothing when served as content type text/html, regardless of the browser used.
I do not believe this and sources say otherwise, but I am wrong?
Edit: Disregarding IE, does it still mean that when XHTML is defined in an HTML document it is NOT XHTML? Like the guy suggested? My current understanding is that XHTML is often contained within the HTML content type. This means that technically you could say that XHTML is merely HTML unless the correct content-type is used. But it's still XHTML syntax and so it a little confusing.
You can find the thread in question over at digitalpoint forums.
解决方案IE has indeed no support for application/xhtml+xml content type while other browsers would then handle HTML as XML. When text/html is used, every browser will just handle XHTML as HTML, IE does nothing different here (expect from the usual quirks).
More details here: hsivonen.iki.fi/doctype/
更多推荐
IE的XHTML兼容性
发布评论