神秘的 XHTML 验证错误

发布于 2024-09-12 06:46:30 字数 545 浏览 2 评论 0原文

我正在尝试验证我的新网站的主页,看起来我遇到了一个神秘的麻烦。

如果我使用 W3C Validator 的复制粘贴页面源功能,我只会收到一条警告,并且我的页面会通过验证。

但是,如果我使用链接输入来验证我的页面,它会显示以下错误:

A fatal error occurred when attempting to decode response body from http://www.yoursite.com/. Either we do not support the content encoding specified ("gzip"), or an error occurred while decoding it.

错误是:无法压缩内容

我的网站是:

pansiyon rezervasyon Portalı

有人可以帮助我解决这个问题吗? 我的页面有效吗?

i am trying to validate homepage of my new website and looks like i have a mysterious trouble.

If i use W3C Validator's copy-paste page source function, i only receive one warning and my page validates.

However if i use link input to validate my page it displays following error:

A fatal error occurred when attempting to decode response body from http://www.yoursite.com/. Either we do not support the content encoding specified ("gzip"), or an error occurred while decoding it.

The error was: Can't gunzip content

My site is:

pansiyon rezervasyon portalı

Would anyone help me on this issue?
Is my page valid or not?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

迎风吟唱 2024-09-19 06:46:30

我收到一些警告,例如锚点通过名称而不是 id/class 进行标识、URI 格式错误(例如:/desktopmodules/dnnforge - 它们在哪里/images/uovisitors.gif)以及使用 XML id 语法的输入。

编辑警告。

Result: 0 errors / 22 warnings

line 23 column 1 - Warning: <input> ID "__EVENTTARGET" uses XML ID syntax
line 24 column 1 - Warning: <input> ID "__EVENTARGUMENT" uses XML ID syntax
line 412 column 2 - Warning: <img> escaping malformed URI reference
line 412 column 312 - Warning: <img> escaping malformed URI reference
line 662 column 348 - Warning: <a> escaping malformed URI reference
line 662 column 514 - Warning: <a> escaping malformed URI reference
line 662 column 698 - Warning: <a> escaping malformed URI reference
line 662 column 882 - Warning: <a> escaping malformed URI reference
line 662 column 1045 - Warning: <a> escaping malformed URI reference
line 662 column 1258 - Warning: <a> escaping malformed URI reference
line 717 column 9 - Warning: <input> ID "__dnnVariable" uses XML ID syntax
line 730 column 38 - Warning: <input> ID "__VIEWSTATE" uses XML ID syntax
line 5 column 1460 - Warning: trimming empty <style>
line 165 column 53 - Warning: <a> cannot copy name attribute to id
line 183 column 74 - Warning: <a> cannot copy name attribute to id
line 211 column 1 - Warning: <a> cannot copy name attribute to id
line 252 column 66 - Warning: <a> cannot copy name attribute to id
line 304 column 77 - Warning: <a> cannot copy name attribute to id
line 329 column 1 - Warning: <a> cannot copy name attribute to id
line 356 column 1 - Warning: <a> cannot copy name attribute to id
line 399 column 1 - Warning: <a> cannot copy name attribute to id
line 423 column 1 - Warning: <a> cannot copy name attribute to id
Info: Doctype given is "-//W3C//DTD XHTML 1.0 Transitional//EN"
Info: Document content looks like XHTML 1.0 Transitional

There are a few warnings I get, such as anchors being identified by name rather than id/class, URI's being malformed (example: /desktopmodules/dnnforge - where are they/images/uovisitors.gif), and inputs using XML id syntax.

EDITED for warnings.

Result: 0 errors / 22 warnings

line 23 column 1 - Warning: <input> ID "__EVENTTARGET" uses XML ID syntax
line 24 column 1 - Warning: <input> ID "__EVENTARGUMENT" uses XML ID syntax
line 412 column 2 - Warning: <img> escaping malformed URI reference
line 412 column 312 - Warning: <img> escaping malformed URI reference
line 662 column 348 - Warning: <a> escaping malformed URI reference
line 662 column 514 - Warning: <a> escaping malformed URI reference
line 662 column 698 - Warning: <a> escaping malformed URI reference
line 662 column 882 - Warning: <a> escaping malformed URI reference
line 662 column 1045 - Warning: <a> escaping malformed URI reference
line 662 column 1258 - Warning: <a> escaping malformed URI reference
line 717 column 9 - Warning: <input> ID "__dnnVariable" uses XML ID syntax
line 730 column 38 - Warning: <input> ID "__VIEWSTATE" uses XML ID syntax
line 5 column 1460 - Warning: trimming empty <style>
line 165 column 53 - Warning: <a> cannot copy name attribute to id
line 183 column 74 - Warning: <a> cannot copy name attribute to id
line 211 column 1 - Warning: <a> cannot copy name attribute to id
line 252 column 66 - Warning: <a> cannot copy name attribute to id
line 304 column 77 - Warning: <a> cannot copy name attribute to id
line 329 column 1 - Warning: <a> cannot copy name attribute to id
line 356 column 1 - Warning: <a> cannot copy name attribute to id
line 399 column 1 - Warning: <a> cannot copy name attribute to id
line 423 column 1 - Warning: <a> cannot copy name attribute to id
Info: Doctype given is "-//W3C//DTD XHTML 1.0 Transitional//EN"
Info: Document content looks like XHTML 1.0 Transitional
素衣风尘叹 2024-09-19 06:46:30

问题是验证器服务不支持您的 Web 服务器发送的 gzip 编码内容。这不完全是一个问题。如果您的页面通过复制粘贴源代码进行验证,则意味着它是有效的。

The problem is that the validator service does not support gzip encoded content sent by your web server. This is not quite of a problem. If your page validates with copy-pasting the source code it means that it is valid.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文