2010-07-30 169 views
1

我想驗證我的新網站的主頁,看起來像我有一個神祕的麻煩。神祕的XHTML驗證錯誤

如果我使用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. 

錯誤是:不能用gunzip內容

我的網站是:

pansiyon rezervasyon portalı

有人會幫我解決這個問題嗎? 我的網頁是否有效?

回答

1

我收到了一些警告,例如錨點是通過名稱而不是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 
+0

你能發佈完整的警告和錯誤列表(如果列出的話)嗎? – 2010-07-30 09:54:15

+0

編輯我原來的帖子。 – 2010-07-30 10:24:19

+0

感謝您的補充 – 2010-08-09 14:57:28

1

問題是驗證器服務不支持您的Web服務器發送的gzip編碼內容。這不是一個問題。如果您的頁面通過複製粘貼源代碼進行驗證,則表示它是有效的。

+0

但死守,如果報告的錯誤是「不能用gunzip」,這聽起來像它* *知道什麼是gzip壓縮(因爲它知道如何撤消),它只是不能用gunzip *此內容*,不是? – AakashM 2010-07-30 08:43:28

+0

@AakashM,網頁瀏覽器似乎正確地解壓縮內容。 – 2010-07-30 08:50:22