html作为IE上的xml文档 [英] html as xml document on IE

查看:75
本文介绍了html作为IE上的xml文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有将IE上的html文档用作XML文档?

Is there anyway to use the html document on IE as an XML document?

推荐答案

" RoLo"写道:
"RoLo" wrote:

无论如何使用IE上的html文件作为XML文件?b $ b?
Is there anyway to use the html document on IE as
an XML document?



只有一小部分HTML文档可以传递XML格式良好的规则

(它们不能包含任何元素EMPTY内容声明,所以

没有img,输入,链接或mata元素的开头,HTML'的可选标签

不能省略(除非打开和结束标记可以是

省略)并且所有属性值都必须引用而不管

是否在HTML中引用它们是不必要的)。我没有看到

什么是在IE上将与任何事情有关,除了一旦IE使用它的 - inner / outerHTML -

属性作为文本的来源呈现一个

文档被视为XML将

成为非首发,因为不需要引用的属性是

几乎从不引用。


Richard。

Only a subset of HTML documents could pass XML''s well-formed-ness rules
(they could not include any elements with EMPTY content declarations, so
no img, input, link or mata elements for a start, HTML''s optional tags
could not be omitted (except where both opening and closing tags can be
omitted) and all attribute values would have to be quoted regardless of
whether quoting them would have been unnecessary in HTML). I don''t see
what being "on IE" would have to do with anything, except that once a
document is being rendered by IE using its - inner/outerHTML -
properties as a source for the text that would be treated as XML would
be a non-starter as there attributes that do not need to be quoted are
almost never quoted.

Richard.


4月18日凌晨1点22分,Richard Cornford < Rich ... @ litotes.demon.co.uk>

写道:
On Apr 18, 1:22 am, "Richard Cornford" <Rich...@litotes.demon.co.uk>
wrote:

" RoLo"写道:
"RoLo" wrote:

无论如何使用IE上的html文件作为XML文件?b $ b?
Is there anyway to use the html document on IE as
an XML document?



只有一小部分HTML文档可以传递XML格式良好的规则

(它们不能包含任何元素EMPTY内容声明,所以

没有img,输入,链接或mata元素的开头,HTML'的可选标签

不能省略(除非打开和结束标记可以是

省略)并且所有属性值都必须引用而不管

是否在HTML中引用它们是不必要的)。我没有看到

什么是在IE上将与任何事情有关,除了一旦IE使用它的 - inner / outerHTML -

属性作为文本的来源呈现一个

文档被视为XML将

成为非首发,因为不需要引用的属性是

几乎从不引用。


理查德。


Only a subset of HTML documents could pass XML''s well-formed-ness rules
(they could not include any elements with EMPTY content declarations, so
no img, input, link or mata elements for a start, HTML''s optional tags
could not be omitted (except where both opening and closing tags can be
omitted) and all attribute values would have to be quoted regardless of
whether quoting them would have been unnecessary in HTML). I don''t see
what being "on IE" would have to do with anything, except that once a
document is being rendered by IE using its - inner/outerHTML -
properties as a source for the text that would be treated as XML would
be a non-starter as there attributes that do not need to be quoted are
almost never quoted.

Richard.



ok,我理解你的观点,我应该更具体......


加载HTML后。 ..无论如何我可以使用文件

作为XML文档。在firefox,opera和safari中,html文件

继承了他们的XML文档方法。在IE中它不是,至少我没有找到

任何

直接这个,所以这就是为什么我要问。

ok, I understand your point, I should have been more specific...

After the HTML is loaded... Is there anyway I could use the document
as an XML document. In firefox, opera and safari the html document
inherits
their XML document methods. In IE it doesn''t, at least I haven''t found
any
direct way to this, so thats why Im asking.


RoLo写道:
RoLo wrote:

加载HTML后...无论如何我可以使用文件

作为XML文档。在firefox,opera和safari中,html文件

继承了他们的XML文档方法。
After the HTML is loaded... Is there anyway I could use the document
as an XML document. In firefox, opera and safari the html document
inherits their XML document methods.



不,它没有。看起来你要么把DOM的方法误认为是
Level 2+ Core是特定于XML-DOM的,要么你还没理解HTML和XHTML之间的

差异。

No, it does not. It would seem that you either mistake the methods of DOM
Level 2+ Core as being XML-DOM-specific, or you have not understood the
difference between HTML and XHTML.


在IE中它不是,至少我没有找到任何直接的方法,

所以这就是为什么我问。
In IE it doesn''t, at least I haven''t found any direct way to this,
so thats why Im asking.



IE大部分都没有实现W3C DOM Level 2.


你应该问*确切*你想要什么比如想知道,并且准备好回答为什么?问题。

PointedEars

-

任何拍下这个页面的人最好用浏览器X'标签查看

a网页似乎渴望过去的糟糕时光,在网络之前,当你几乎没有机会阅读写在另一个上的文件的时候,这个b
$ b计算机,另一个文字处理器或其他网络。 - Tim Berners-Lee

IE does not implement W3C DOM Level 2 for the most part.

You should ask *exactly* what you would like to know instead, and be
prepared to answer the "Why?" question.
PointedEars
--
Anyone who slaps a ''this page is best viewed with Browser X'' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee


这篇关于html作为IE上的xml文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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