XHTML支持? [英] XHTML support?

查看:64
本文介绍了XHTML支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



嘿所有,


有谁知道所有较新的浏览器是否支持XHTML?我的主要目标是

IE6 / NN6 +(firefox / mozilla / etc),但我想知道Safari,Opera,

Konqueror以及其他浏览器支持它。

任何人都知道XHTML的任何主要兼容性问题?

旧版浏览器(如Netscape 4)如何对doctype做出反应?


TIA


-

-

~kaeli~

墨菲定律#2000:如果收集到足够的数据,可以通过统计方法证明任何物品的价值。
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace


Hey all,

Does anyone know if all the newer browsers support XHTML? My main target is
IE6/NN6+(firefox/mozilla/etc), but I''d like to know if Safari, Opera,
Konqueror, and other browsers also support it.
Anyone know of any major compatibility problems with XHTML?
How do older browsers, such as Netscape 4, react to the doctype?

TIA

--
--
~kaeli~
Murphy''s Law #2000: If enough data is collected, anything
may be proven by statistical methods.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

推荐答案

开2004年8月17日星期二07:48:00 -0500,kaeli< ti ****** @ NOSPAM.comcast.net>

写道:
On Tue, 17 Aug 2004 07:48:00 -0500, kaeli <ti******@NOSPAM.comcast.net>
wrote:
嘿嘿所有,

有没有一个人知道所有较新的浏览器是否支持XHTML?我的主要目标是
IE6 / NN6 +(firefox / mozilla / etc),但我想知道Safari,Opera,Konqueror和其他浏览器是否也支持它。任何人都知道XHTML的任何主要兼容性问题?
旧版浏览器(如Netscape 4)如何对doctype做出反应?

TIA

Hey all,

Does anyone know if all the newer browsers support XHTML? My main target
is
IE6/NN6+(firefox/mozilla/etc), but I''d like to know if Safari, Opera,
Konqueror, and other browsers also support it.
Anyone know of any major compatibility problems with XHTML?
How do older browsers, such as Netscape 4, react to the doctype?

TIA




XHTML代码本质上是HTML,因此它对于不同的浏览器来说相对便宜。当您提供文档时,真正的问题就来了。如果

你没有以文本/ html的形式提供你的XHTML,IE就无法处理它。但是,在

这种情况​​下,可以解析XML的浏览器不会。所以这是一个选择:用作text / html并失去做XHTML的主要好处,

用作application / xml + xhtml并失去最流行的UA ,或者解决

a复杂的内容协商疯狂,允许你向用户提供

正确的文档,尽管可能会为他们缓存

某个地方。


简而言之 - 只要IE或任何类似的UA存在,它拥有市场份额

并且无法正确处理XHTML,HTML 4.01是最好的可用的方式

代码文件。



XHTML code is essentially HTML, and as such it''s relatively portable to
different browsers. The real problem comes when you serve the document. If
you do not serve your XHTML as text/html, IE cannot handle it. However, in
this case browsers which could have parsed the XML will not. So it''s a
choice: serve as text/html and lose the primary benefit of doing XHTML,
serve as application/xml+xhtml and lose the most prevalent UA, or work out
a complex content-negotiation craziness that allows you to serve the
proper document to the user despite what might be cached for them
someplace.

In short - as long as IE or any similar UA exists which holds market share
and cannot handle XHTML properly, HTML 4.01 is the best available way to
code the document.


kaeli写道:
kaeli wrote:
有没有人知道是否所有较新的浏览器支持XHTML?我的主要目标是IE6 / NN6 +(firefox / mozilla / etc),但我想知道Safari,Opera,Konqueror和其他浏览器是否也支持它。


Real XHTML?

* IE,lynx和链接不支持。

*由Gecko支持(Mozilla,Firefox,NN) 6+等)

* Opera - 我认为有XHTML支持。

* Safari - 我认为通过将application / xhtml + xml视为
$来伪造XHTML b $ b text / html。


XHTML用作text / html?

*大多数浏览器都可以出错。

* Emacs W3(正确遵循SGML规则)解释XHTML自闭标签

作为元素后跟>

旧版浏览器(如Netscape 4)如何对doctype做出反应?
Does anyone know if all the newer browsers support XHTML? My main target
is IE6/NN6+(firefox/mozilla/etc), but I''d like to know if Safari, Opera,
Konqueror, and other browsers also support it.
Real XHTML?
* Unsupported by IE, lynx and links.
* Supported by Gecko (Mozilla, Firefox, NN 6+ etc)
* Opera - I think has XHTML support.
* Safari - I think it fakes XHTML by treating application/xhtml+xml as
text/html.

XHTML served as text/html?
* Most browsers can error correct
* Emacs W3 (correctly under SGML rules) interprets XHTML self-closing tags
as elements followed by a >
How do older browsers, such as Netscape 4, react to the doctype?




他们不是。根据

doctype猜测页面作者的智慧是一件新事。


-

David Dorward< http://blog.dorward.me.uk/> < http://dorward.me.uk/>

Home是〜/ .bashrc的地方



They don''t. Guessing the intelligence of the page author based on the
doctype is a new thing.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


在文章< cf*******************@news.demon.co.uk>,

David Dorward< do ***** @ yahoo .COM>写道:
In article <cf*******************@news.demon.co.uk>,
David Dorward <do*****@yahoo.com> wrote:
真正的XHTML?
* Safari - 我认为通过将application / xhtml + xml视为
text / html来伪造XHTML。
Real XHTML?
* Safari - I think it fakes XHTML by treating application/xhtml+xml as
text/html.




当XHTML格式不正确时,它会引发一个致命的错误,所有这一切

是值得的。


-

Kris

< kr ******* @ xs4all.netherlands> (nl)



It throws up a fatal error when the XHTML is not well-formed, for all it
is worth.

--
Kris
<kr*******@xs4all.netherlands> (nl)


这篇关于XHTML支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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