搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Does Firefox 4.0.1 actually use the <!DOCTYPE statement?

  • 1 回覆
  • 1 有這個問題
  • 6 次檢視
  • 最近回覆由 cor-el

more options

I have an html page that begins with:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

The web browsers starting with IE8 and older handle the web page, including Firefox 4.0.1, but IE9 does not work. I would like for Firefox 4.0.1 use the standards as specified in the dtd file so I can use the error console to see that html statements do not conform to the dtd standards.

Thanks

edited by a moderator to show the tags

I have an html page that begins with: <pre><nowiki><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"></nowiki></pre> The web browsers starting with IE8 and older handle the web page, including Firefox 4.0.1, but IE9 does not work. I would like for Firefox 4.0.1 use the standards as specified in the dtd file so I can use the error console to see that html statements do not conform to the dtd standards. Thanks ''edited by a moderator to show the tags''

由 cor-el 於 修改

所有回覆 (1)

more options

A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.
The helpers at that forum are more knowledgeable about web development issues.
You need to register at the mozillaZine forum site in order to post at that forum.

See http://forums.mozillazine.org/viewforum.php?f=25