我不能修復這個錯誤:無法確定解析模式無法修復
Unable to Determine Parse Mode!
The validator can process documents either as XML (for document types such as XHTML, SVG, etc.) or SGML (for HTML 4.01 and prior versions). For this document, the information available was not sufficient to determine the parsing mode unambiguously, because:
the MIME Media Type (text/html) can be used for XML or SGML document types
No known Document Type could be detected
No XML declaration (e.g <?xml version="1.0"?>) could be found at the beginning of the document.
No XML namespace (e.g <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">) could be found at the root of the document.
As a default, the validator is falling back to SGML mode.
現在我用這個:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
我讀了一些答案,說改成這樣:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
或者這樣:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
此外我保存文件爲UTF-8,但它沒有檢測到文檔類型
我不明白爲什麼。
這裏鏈接到我的網站,我使用Laravel 4
http://test.ibids.co.il/?lang=en
謝謝。
duh,使用'<!DOCTYPE HTML>'。爲什麼所有的垃圾,如果你可以讓它容易和乾淨? – MightyPork 2015-01-21 11:33:17
不知道,我嘗試使它最好的工作..首先它是乾淨的<!DOCTYPE HTML>,但它沒有奏效,所以我切換到其他人。 – Ravg 2015-01-21 11:46:31
這個垃圾你現在已經老了,不贊成使用html5文檔類型。問題的確在於文檔類型不是頁面的第一件事。 – MightyPork 2015-01-21 11:50:43