排版引擎比較 (非標準HTML)

下表比較了不贊成使用和專有的HTML元素屬性對一些排版引擎的支持和兼容性。請參閱各個產品的條目以獲得更多信息。除非腳註中另有規定,比較均基於穩定版本,無任何附加組件、擴展或外部程序。

萬維網發展早期,網頁瀏覽器網頁使用的標準還未成熟。網景微軟WebTV等供應商相互競爭,提供不同的瀏覽器與HTML編輯器,它們對如何構造網站都有自己的想法。這些不同的特徵導致了網頁開發者往往使用僅可被單一瀏覽器識別的元素為特定的網頁瀏覽器編碼。WebTV與IBM的WebExplorer從未被主流瀏覽器採用。

表格說明 編輯

引擎命名 編輯

這裡使用後端的引擎名而不是瀏覽器的名稱。使用各瀏覽器引擎的瀏覽器如下表所示。

排版引擎 發行版本 預覽版本 使用
Amaya 11.4.7[1] 不適用 停止開發;Amaya
Blink 537.36 源代碼[注 1] Chromium/Chrome(28+)、Opera(15+)、YandexMicrosoft Edge(新版)
EdgeHTML 13.10586 [2] 不適用 Microsoft Edge(舊版)、通用Windows平台 (UWP)JavaScript應用
Gecko
標準版77.0.1(2018年8月8日,​5年前​(2018-08-08[3]
延長支持版(ESR)68.9.0(2018年6月26日,​5年前​(2018-06-26[4]


Beta及開發者版126.0b8[5] (2024年5月1日)
Nightly127.0a1[6] (2024年4月15日)
所有Mozilla軟件,包括FirefoxSeaMonkeyGaleonCaminoK-MeleonFlock(至2.x版本);Debian IceWeaselGNU IceCat(前身為GNU IceWeasel);CyberfoxIcedoveIceapeIceowlFirefox for mobile("Fennec")
KHTML 4.12.3[7] 不適用 Konqueror[注 2]
Presto 2.12.388 不適用 停止開發;OperaOpera Mobile現在使用Blink;任天堂DS & DSi瀏覽器Internet Channel
Tasman (Mac版IE 5.2.3) 不適用 2003年停止開發;Mac OS XInternet Explorer 5以上
Trident 7.0(IE 11) 不適用 Internet Explorer與其他Internet Explorer shellMaxthon(僅限Microsoft Windows操作系統)、Windows Phone 8
WebKit 534.20 每日構建[注 3] Tizen(OS與瀏覽器)、Safari(桌面與移動版)、Google Chrome(28版本之前)、Maxthon 3Shiira, iCab 4OmniWeb 5.5+、WebAdobe AIRMidori, Adobe Dreamweaver CS4CS5Android瀏覽器、Palm webOS瀏覽器、Symbian S60瀏覽器、OWB英語Origyn Web BrowserSteamRekonqAroraFlock (版本3以上)、RockMelt海豚瀏覽器SleipnirKonqueror[注 2]
  1. ^ chromium / chromium/blink. chromium.googlesource.com. Google. [2014-05-27]. 
  2. ^ 2.0 2.1 在Konqueror中,用戶可以切換排版引擎。
  3. ^ WebKit Nightly Builds. webkit.org. [2014-05-27]. 


取值 編輯

以下各格的顏色表示該排版引擎的最新版本或指定版本(如果給出版本號的話)對該功能的支援程度。沒有取值的版本號表示該排版引擎首次完全支援該功能。

取值 含義
表示該排版引擎完全地支援該功能或元素。
表示該功能或元素尚未有支援。
部份 表示該功能或元素有實作進展,但並不支援所有取值,對於已支援的取值,該實作是正確的。
不正確 表示該功能或元素有實作進展,但是實作並非在所有情況都是正確無誤的。
實驗性質 表示該功能或元素有實作進展,但是使用另外的屬性或元素名(瀏覽器前輟)。多半是不完全實作或是有過多的漏洞
拋棄 表示該屬性/元素不再受到支持。
每日構建 表示該功能或元素在未釋出的版本有某種程度的支援。預期將有完整支援。
依情況 表示該屬性/元素僅在某些平台支持或設定在某些配置後支持。

不贊成使用的HTML元素 編輯

元素 功能 率先支持 不贊成使用的HTML版本 代替方案 Trident Gecko WebKit KHTML Presto
applet 插入一個小程序 HotJava 4[8] embedobject <3.1[IE 4.0] 1.7 1.0
basefont 設置字體樣式 Internet Explorer 4 CSS <3.1[IE 3.0] [9] 85
center 內容置中 網景[10] 4 CSS 3.1
dir 目錄列表 ? 4 ulol
font 應用字體樣式 網景 4 CSS
isindex[11] 添加一個搜索欄 ? 4 input type="search" <3.1[IE 5.5] 1.7 312 部份
listing 顯示格式化文本 IETF 2 presampcode、CSS 3.1 125 3.3
menu 菜單列表 ? 4 ulol
plaintext 所有內容按照HTML源代碼的方式顯示 ? 3.2 The text/plain MIME type
s 刪除線 ? 4 del、CSS <3.1[IE 4.0] 1.7 1.0
strike 刪除線 ? 4 del、CSS
u 下劃線 ? 4 CSS
xmp pre和plaintext相似,內容按照HTML源代碼的方式顯示 ? 2 presampcode <3.1[IE 3.0] 125 3.3

不贊成使用的HTML屬性 編輯

屬性 元素 代替方案 Trident Gecko WebKit KHTML Presto
align captiondivfieldseth1h2h3h4h5h6hrimginputlegendpobjecttable CSS 3.1
alink body CSS
background body CSS
bgcolor bodytabletrtdth CSS
border imgobject CSS 部份[注 1]
clear br CSS
compact dlulol CSS
color basefontfont CSS 3.1 部份[注 2][9] 部份[注 2]
height tdth CSS
hspace imgobject CSS
language script type屬性
link body CSS
noshade hr CSS
nowrap tdth CSS
size basefontfonthr CSS
start ol None
text body CSS
type liulol CSS
version html DTD
vlink body CSS
width hrpretdth CSS
vspace imgobject CSS

專有HTML元素 編輯

標籤 功能 引入 代替方案 Trident Gecko WebKit KHTML Presto
bgsound 將聲音添加到網站後台 Internet Explorer audio <3.1[IE 3.0] 拋棄[12]
blink 用於顯示閃爍的文字 網景 Javascript、CSS 拋棄[13] 1.0
bq 用於顯示塊引用 WebTV、HTML 3.0 blockquote 拋棄[14]
comment 用於向HTML文檔添加注釋 Internet Explorer、WebTV <!-- ... --> 3.1
ilayer 內嵌層 網景(僅版本4) iframe 部份
image img的同義詞 ? img 3.1
layer 用於創建多層文本和圖像,在給定的順序下分布在彼此的頂部 網景(僅版本4) CSS、Ajax 部份
marquee 用於顯示類似滾動字幕的文本 Internet Explorer、WebTV JavaScript、CSS3 3.1 1.7 125 3.3 1.0
nobr 防止在文本流內產生任何換行符 網景[15][16] CSS 3.1
noembed 為不承認嵌入標籤瀏覽器顯示替代文本 網景 對象的子元素作為備用
spacer 在排版中添加空白 網景 CSS 拋棄[17]
wbr 放置在nobr元素中以添加一個換行符 網景[15][16] Unicode字符

零寬空格 (U+200B)

拋棄[注 3] 1.7 3.1
xml[19] 限定一個HTML頁面中的XML數據島 Internet Explorer ? 3.1

專有HTML屬性 編輯

屬性 被廢棄 功能 率先支持 Trident Gecko WebKit KHTML Presto
bgproperties body 判定背景圖片是否與背景一起滾動 Internet Explorer 3.1
bordercolor body tabletdthtr元素中設置三維表格邊框的顏色 Internet Explorer
bordercolordark body tabletdthtr元素中設置三維表格邊框的顏色 Internet Explorer
bordercolorlight body tabletdthtr元素中設置三維表格邊框的顏色 Internet Explorer
controls img 使用img元素放置視頻或音頻片段 Internet Explorer
dynsrc img 使用img元素放置視頻或音頻片段 Internet Explorer
event script 定義一個函數用於調用對象 Internet Explorer 部份 ? ? ?
for script 定義一個對象用於綁定腳本事件 Internet Explorer 部份 ? ? ?
frame table 在table標籤中控制表的外邊界顯示 Internet Explorer ?
framespacing frameset 設置框架之間空間的多少 Internet Explorer ? ?
leftmargin body 設置瀏覽器窗口和網頁內容之間的邊距 Internet Explorer 3.1 ? ?
loop img 使用img元素放置視頻或音頻片段 Internet Explorer
rightmargin body 設置瀏覽器窗口和網頁內容之間的邊距 Internet Explorer 3.1 ? ?
start img 使用img元素放置視頻或音頻片段 Internet Explorer
target form 為表單的輸出指定目標窗口或框架 Internet Explorer [20] ?
valign caption 將表格標題的設置為垂直對齊 Internet Explorer 3.1 ? ?

參見 編輯

注釋 編輯

  1. ^ 僅支持img
  2. ^ 2.0 2.1 僅支持font
  3. ^ Trident在5.0版本中不再支持wbr[18]

參考文獻 編輯

  1. ^ Amaya Binary Releases, Most recent download link in stable
  2. ^ Change log between EdgeHTML 12.10240 and 13.10586
  3. ^ Firefox 77.0.1, See All New Features, Updates and Fixes. mozilla.org. Mozilla基金會. 2020-06-03. 
  4. ^ Firefox ESR 68.9.0, See All New Features, Updates and Fixes. mozilla.org. Mozilla基金會. 2020-06-02. 
  5. ^ Index of /pub/firefox/releases/126.0b8/. 2024年5月1日 [2024年5月2日] (英語). 
  6. ^ Firefox Nightly 127.0a1, See All New Features, Updates and Fixes. 2024年4月15日 [2024年4月16日] (英語). 
  7. ^ Download for kdelibs, Most recent download link in stable
  8. ^ HTML 4 Changes, W3C, 18 December 1997 [2008-05-07], (原始內容存檔於2021-01-25) 
  9. ^ 9.0 9.1 Bug 3875 - (basefont) deprecated basefont element not supported, Mozilla, [2016-02-06], (原始內容存檔於2021-03-10) 
  10. ^ HTML 3.2 Reference Specification, W3C, 14 January 1997 [2008-10-08], (原始內容存檔於2008-09-04) 
  11. ^ Isindex Example, [2008-05-07], (原始內容存檔於2008-04-05) 
  12. ^ Tommy A. Olsen. Opera Desktop Team - Glyphs and plugins. 28 November 2011 [28 November 2011]. (原始內容存檔於2014-02-17). CORE-34613 Drop support for <bgsound> 
  13. ^ Mozilla Aurora Notes. Mozilla. [1 June 2013]. (原始內容存檔於2014-09-06). 
  14. ^ gsnedders. IRC logs: freenode / #whatwg / 2010-09-09. 9 September 2010 [9 September 2010]. (原始內容存檔於2021-02-24). # [17:27] <gsnedders> I know we dropped support for the bq element :P 
  15. ^ 15.0 15.1 Complete List of HTML Tags. [10 October 2011]. (原始內容存檔於2021-02-25). 
  16. ^ 16.0 16.1 Extensions to HTML. Netscape. 1994 [10 October 2011]. (原始內容存檔於2021-02-13). 
  17. ^ Bug 531056 - [HTML5] Remove spacer support, Mozilla, [2016-02-06], (原始內容存檔於2021-03-08) 
  18. ^ Zeilenumbruch erlauben, Impressum, [2016-02-06], (原始內容存檔於2015-04-08) (德語) 
  19. ^ XML Element | xml Object, Microsoft, [2016-02-06], (原始內容存檔於2017-05-27) 
  20. ^ Bug 207900 - psychotekk.de - the target attribute in the form element is ignored, Mozilla, [2016-02-06], (原始內容存檔於2021-03-08)