比较验证者的结果 [英] comparing results of validators

查看:66
本文介绍了比较验证者的结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://geocities.com/r_bullis/gallery2.html


w3c的Validator 3完全取消了页面的连接。

它不喜欢评论标签,也不喜欢alt不与img一起使用

标签。

虽然拼图版现在说页面符合要求。


Validator 3不会不喜欢雅虎为嵌入式

广告添加的内容,而Jigsaw完全忽略了它们。


Validator 3显然不喜欢使用内联<风格>而jigsaw

的确如此。

最有趣。


那么在一个部门中正确使用评论标签是什么? />
<!---- image 101 --->未经批准。

对不起。这是一个评论。它应该被忽略。

它忽略了//脚本注释。

http://geocities.com/r_bullis/gallery2.html

Validator 3 at w3c totally annhialates the page.
It doesn''t like comment tags, nor does it like "alt" not being used with img
tags.
While the jigsaw version now says the page is compliant.

Validator 3 doesn''t like the added stuff yahoo puts on for their embedded
ads, while Jigsaw totally ignores them.

Validator 3 apparently does not like the use of inline <style> while jigsaw
does.
Most interesting.

So what is the proper use of comment tags within a division?
<!---- image 101 ---> is not approved of.
Excuse me. It''s a comment. It should be ignored.
It ignored the // script comments.

推荐答案

2004年12月14日星期二10: 29:16 -0600,理查德 < An ******* @ 127.001>

写道:
On Tue, 14 Dec 2004 10:29:16 -0600, "Richard" <An*******@127.001>
wrote:
http://geocities.com/r_bullis/gallery2.html

w3c的验证器3完全取消页面的连接。
它不喜欢评论标签,也不喜欢alt没有与img
标签一起使用。
虽然拼图版现在说页面符合要求。


他们正在验证不同的东西。

validator.w3.org是一个HTML验证器。

jigsaw.w3。 org / css-validator /是一个CSS''验证器''。

Validator 3不喜欢yahoo为其嵌入式广告添加的内容,而Jigsaw完全忽略了它们。


因为他们是HTML错误而不是CSS错误。

那么在一个部门内正确使用评论标签是什么?
< !---- image 101 --->未获批准。


评论以两个破折号开头和结尾。所以在评论结束后但在宣言结束之前你还有一个额外的破折号



这是一个错误。

对不起。这是一个评论。应该忽略它。


忽略评论( - 和 - 之间的所有内容)。评论后发现这是错误的



它忽略了//脚本评论。
http://geocities.com/r_bullis/gallery2.html

Validator 3 at w3c totally annhialates the page.
It doesn''t like comment tags, nor does it like "alt" not being used with img
tags.
While the jigsaw version now says the page is compliant.
They''re validating different things.
validator.w3.org is an HTML validator.
jigsaw.w3.org/css-validator/ is a CSS ''validator''.
Validator 3 doesn''t like the added stuff yahoo puts on for their embedded
ads, while Jigsaw totally ignores them.
Because they''re HTML errors not CSS errors.
So what is the proper use of comment tags within a division?
<!---- image 101 ---> is not approved of.
A comment starts and ends with two dashes. So you have an extra dash
after the end of the comment but before the close of the declaration.
That''s an error.
Excuse me. It''s a comment. It should be ignored.
It is ignoring the comment (everything between -- and --). It''s the
stuff after the comment that''s an error.
It ignored the // script comments.




当然,< script>的内容块是CDATA,因此对不同的解析规则来说是




Steve



Of course, the content of <script> blocks is CDATA and hence subject
to different parsing rules.

Steve


曾几何时* Richard *写道:
Once upon a time *Richard* wrote:
http://geocities.com/r_bullis/gallery2.html

w3c的验证器3完全取消了页面的连接。


什么是Validator 3?你的意思是validator.w3.org吗?

它不喜欢评论标签,也不喜欢alt没有与img
标签一起使用。
虽然拼图版现在说页面符合要求。


拼图版 (jigsaw.w3.org)只是一个CSS验证器。它

不会验证其他任何东西。 validator.w3.org验证HTML

验证器3不喜欢雅虎为其嵌入式广告添加的内容,而Jigsaw完全忽略了它们。


验证者不喜欢它,因为它位于文件顶部,

doctype规范。应该。 Jigsaw在Yahoo stuff中没有看到任何CSS,

因为它只是javascript(?)

Validator 3显然不喜欢使用内联< style>而拼图



哦,是的,确实如此。这是导致错误的其他因素。

那么在一个部门中正确使用评论标签是什么?
<!---- image 101 --->未经批准。
对不起。这是一个评论。它应该被忽略。
它忽略了//脚本注释。
http://geocities.com/r_bullis/gallery2.html

Validator 3 at w3c totally annhialates the page.
What is "Validator 3"? Do you mean validator.w3.org?
It doesn''t like comment tags, nor does it like "alt" not being used with img
tags.
While the jigsaw version now says the page is compliant.
The "jigsaw version" ( jigsaw.w3.org ) is a CSS validator only. It
does''nt validate anything else. The "validator.w3.org" validates HTML
Validator 3 doesn''t like the added stuff yahoo puts on for their embedded
ads, while Jigsaw totally ignores them.
The validator don''t like it because it''s on top of the file, where the
doctype spec. should be. Jigsaw don''t see any CSS in the "Yahoo stuff",
since it''s javascript only(?)
Validator 3 apparently does not like the use of inline <style> while jigsaw
does.
Oh yes, it does. It''s something else that cause the error.
So what is the proper use of comment tags within a division?
<!---- image 101 ---> is not approved of.
Excuse me. It''s a comment. It should be ignored.
It ignored the // script comments.




验证器在评论中只需要两个连字符,比如

<! - 正确的评论 - >

不要问我为什么,它就像是:-)


-

/ Arne
http ://web.telia.com/~u97802964/

老人相信一切,中年人怀疑一切和年轻人b
知道一切。 (奥斯卡王尔德)



The validator want just two hyphens in the comments, like
<!-- Correct comment -->
Don''t ask me why, it''s just like that it is :-)

--
/Arne
http://web.telia.com/~u97802964/

The old believe everything, the middle-aged suspect everything and the
young know everything. (Oscar Wilde)


* Richard *写道:
*Richard* wrote:
<!---- image 101 - - >未经批准。
对不起。这是一个评论。它应该被忽略。
<!---- image 101 ---> is not approved of.
Excuse me. It''s a comment. It should be ignored.



Arne< us ** @ domain.invalid>写道:验证器在评论中只需要两个连字符,例如
<! - 正确评论 - >
不要问我为什么,它就像是: - )


Arne <us**@domain.invalid> wrote: The validator want just two hyphens in the comments, like
<!-- Correct comment -->
Don''t ask me why, it''s just like that it is :-)




作为FAQ< http://www.htmlhelp.com/faq/html/basics.html#html-comments>

解释:


评论声明以<!开头,后跟零或多个

评论,后跟> ;" ;.评论以 - 开头和结尾,并且

不包含任何 - 的出现。在开头和

结束对之间。


所以,第一个例子应解释为:


< ;!开始申报

- 发表评论

- 结束评论

image 101不在评论中的文字(不允许)

- 发表评论

- >评论中的文字


第二条评论和声明本身都没有关闭。


但浏览器并不真正支持SGML评论。

的实用规则HTML评论(来自FAQ)是:


HTML评论以<! - 开头,结尾为" - >",并且没有

包含" - "或>评论中的任何地方。不要在HTML标记内的标记内(即在<"和">"之间)添加评论



-

Darin McGrew, mc****@stanfordalumni.org http://www.rahul.net/mcgrew/

网页设计组, da *** @ htmlhelp.com http://www.HTMLHelp.com/

失败不是一种选择。它与软件捆绑在一起。



As the FAQ <http://www.htmlhelp.com/faq/html/basics.html#html-comments>
explains:

A comment declaration starts with "<!", followed by zero or more
comments, followed by ">". A comment starts and ends with "--", and
does not contain any occurrence of "--" between the beginning and
ending pairs.

So, the first example should be interpretted as:

<! Start the declaration
-- Start a comment
-- End a comment
image 101 Text not within a comment (not allowed)
-- Start a comment
-> Text within a comment

And neither the second comment nor the declaration itself are closed.

But browsers don''t really support SGML comments. The practical rule for
HTML comments (from the FAQ) is:

An HTML comment begins with "<!--", ends with "-->", and does not
contain "--" or ">" anywhere in the comment. Do not put comments
inside tags (i.e., between "<" and ">") in HTML markup.
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"FAILURE IS NOT AN OPTION. It comes bundled with the software."


这篇关于比较验证者的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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