“& amp;”的问题改为“&” [英] Problems with "&" changing to "&"

查看:120
本文介绍了“& amp;”的问题改为“&”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认识的许多Firefox用户表示他们在验证方面存在问题

其中&符号必须写成& amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp;有效。我不是没有b $ b我有自己的Firefox而且不会因为这个而安装它,

所以我希望你们中的一些大师可以启发我这个:)


在什么情况下可以使用& amp;在源代码中是非自愿的

更改为&通过浏览器何时或其他软件,编辑和上传文件到网络服务器时?


例如写一个字符串,如sc_project = 402887& amp; java = 0& amp; security

更改为sc_project = 402887& java = 0& security当验证器处理代码时,没有编辑故意进行更改。


TIA


- -

/ Arne


SeaMonkey的骄傲用户。获取免费副本:
http://www.mozilla.org/ projects / seamonkey /

解决方案



Arne写道:

很多我知道的Firefox用户表示他们在验证方面存在问题



在从编辑器到服务器到在线验证器的路线中,就在这里

Firefox(或任何浏览器)与它有什么关系吗?


如上所述,你的问题有太多遗漏而无法制作任何

在我们的最后一集中,

< 4c @ individual.net>,

可爱而有才华的Arne

在comp.infosystems广播。 www.authoring.html:

我认识很多Firefox用户说他们遇到v问题alidation
其中&符必须写成& amp; amp; amp; amp; amp; amp; amp; amp; amp; amp;有效。我没有自己拥有Firefox,也不会因为这个而安装它,所以我希望你们中的一些大师可以用这个来启发我:)


这没有任何意义。 &安培;应该是& amp;任何html中的任何地方

文件,除非&是字符引用的开始。有效性

不依赖于浏览器,但无论浏览器如何,该文件都可能或可能是b $ b不具备的属性。浏览器在获取时应该正确地翻译URL中的
字符引用,但据我所知,我可以通过测试告诉
,Firefox会这样做。

在什么情况下& amp;在源代码中是非自愿的
改为&通过浏览器何时或其他软件,在编辑和上传文件到Web服务器时?


我无法理解这一点。浏览器不应该对他们上传的
文件做任何事情,而且我从来没有听说过那些。我不确定如果你使用浏览器功能在

textarea中插入文件的内容会发生什么?b $ b,但这与上传不一样一个文件。

例如写一个字符串,如sc_project = 402887& amp; java = 0& amp; security


如果你把它写在文件中并保存然后上传文件,那么

不应该发生:

更改为sc_project = 402887& java = 0& security当验证器处理代码时,编辑器没有故意进行更改。



-

Lars Eighner us **** @ larseighner.com http://www.larseighner.com/

我没有看到别人,因为巨人站在我的肩膀上。


曾几何时* Andy Dingley< di ***** @ codesmiths.com> *写道:

Arne写道:

很多我知道的Firefox用户表示他们在验证方面存在问题



在从编辑器到服务器到在线验证器的路径中,就在Firefox的位置(或者任何浏览器)与它有什么关系吗?

如上所述,你的问题有太多遗漏,无法理解。



是的,我确实相信它有点难明白了。 :)

我会尝试一个例子,因为它描述给我。


在远程访客跟踪网站(statcounter.com)上跟踪器代码

要粘贴在页面上,是使用Firefox生成的,代码为

副本显示在文本框中。部分代码是我在我的

初始帖子中使用的代码(sc_project = 402887& java = 0& security)。在我的浏览器和

也在IE中,这部分将&符号显示为& amp;。


当我查看源代码时对于带有

生成代码的框所在的页面,&符号显示为& amp; amp,但是当我用
验证页面时,W3C验证者还抱怨&,其中

为& amp;。 (或& amp; amp)应该是。


此页面是HTML 4.0 Transitional,有9个错误,大多数错误

( 6-7)是因为&符号没有显示为& amp;


我知道这很难理解,我肯定没有理念。我希望有人可以得到一些理论发生了什么。 :)


-

/ Arne


SeaMonkey的骄傲用户。获取免费副本:
http://www.mozilla.org/ projects / seamonkey /


A lot of Firefox users I know, says they have problems with validation
where the ampersand sign has to be written as &amp; to be valid. I don''t
have Firefox my self and don''t wont to install it only because of this,
so I hope some of you gurus can enlighten me with this :)

In what circumstances can the "&amp;" in the source code be involuntary
changed to "&" by a browser when or other software, when editing and
uploading the file to the web server?

E.g. writing a string like "sc_project=402887&amp;java=0&amp;security"
is changed to "sc_project=402887&java=0&security" when the validator is
processing the code, without the editor doing the change deliberately.

TIA

--
/Arne

Proud User of SeaMonkey. Get your free copy:
http://www.mozilla.org/projects/seamonkey/

解决方案


Arne wrote:

A lot of Firefox users I know, says they have problems with validation



In the route from editor to server to on-line validator, just where
does Firefox (or any browser) have anything to do with it?

Your question, as stated, has too much missing from it to make any
sense.


In our last episode,
<4c*************@individual.net>,
the lovely and talented Arne
broadcast on comp.infosystems.www.authoring.html:

A lot of Firefox users I know, says they have problems with validation
where the ampersand sign has to be written as &amp; to be valid. I don''t
have Firefox my self and don''t wont to install it only because of this,
so I hope some of you gurus can enlighten me with this :)
This doesn''t make any sense. & should be &amp; anywhere in any html
document unless the & is the beginning of a character reference. Validity
does not depend upon the browser, but is a property the document may or may
not have regardless of the browser. Browser should correctly translate
character references in URLs when they fetch, but so far as I know and I can
tell from testing, Firefox does that.
In what circumstances can the "&amp;" in the source code be involuntary
changed to "&" by a browser when or other software, when editing and
uploading the file to the web server?
I can''t make any sense of this. Browsers shouldn''t be doing anything to
files they upload, and I never heard of one that did. I''m not sure what
happens if you use a browser function to insert the contents of a file in a
textarea, but that is not the same thing as uploading a file.
E.g. writing a string like "sc_project=402887&amp;java=0&amp;security"
If you write this in a file and save it and then upload the file, the
following should not happen:
is changed to "sc_project=402887&java=0&security" when the validator is
processing the code, without the editor doing the change deliberately.


--
Lars Eighner us****@larseighner.com http://www.larseighner.com/
I have not seen as far as others because giants were standing on my shoulders.


Once upon a time *Andy Dingley <di*****@codesmiths.com>* wrote:

Arne wrote:

A lot of Firefox users I know, says they have problems with
validation



In the route from editor to server to on-line validator, just where
does Firefox (or any browser) have anything to do with it?

Your question, as stated, has too much missing from it to make any
sense.



Yes, I do belive it''s a bit difficult to understand. :)
I''ll try with an example as it is described to me.

On a remote visitor tracker site (statcounter.com) when the tracker code
that is to be pasted on a page, is generated using Firefox, the code to
copy is shown in a text box. Part of the code is what I used in my
initial post ("sc_project=402887&java=0&security"). In my browser and
also in IE, this part shows the ampersands as "&amp;".

When I look at the source code for the page where the box with the
generated code is, the ampersand shows as "&amp;amp", but when I
validate the page, the W3C validator also complains about the "&", where
the "&amp;" (or "&amp;amp") should be.

This page is HTML 4.0 Transitional with 9 errors, and most of the errors
(6-7) is because of the ampersand is not shown as "&amp;"

I know it''s hard to understand this, and I for sure have no idea. I was
hoping somebody could have some theory what''s happening. :)

--
/Arne

Proud User of SeaMonkey. Get your free copy:
http://www.mozilla.org/projects/seamonkey/


这篇关于“&amp; amp;”的问题改为“&amp;”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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