1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
---
title: Firefox 61 技術變動摘要
slug: Mozilla/Firefox/Releases/61
translation_of: Mozilla/Firefox/Releases/61
---
<div>{{FirefoxSidebar}}</div><div>{{draft}}</div>
<p class="summary">此文章提供 Firefox 61 中與開發者較為相關之變動資訊。Firefox 61 預定於 <a href="https://wiki.mozilla.org/RapidRelease/Calendar#Future_branch_dates">2018 年 6 月 26 日正式發表</a>。</p>
<h2 id="Web_開發相關變動">Web 開發相關變動</h2>
<h3 id="開發者工具">開發者工具</h3>
<p><em>無變動。</em></p>
<h3 id="HTML">HTML</h3>
<p><em>無變動。</em></p>
<h3 id="CSS">CSS</h3>
<p><em>無變動。</em></p>
<h3 id="SVG">SVG</h3>
<ul>
<li>{{SVGElement("a")}} 元素({{domxref("SVGAElement")}})新增 <code>ping</code>、<code>rel</code>、<code>referrerPolicy</code>、<code>relList</code>、<code>hreflang</code>、<code>type</code> 及 <code>text</code> 等屬性,以便與 HTML {{HTMLElement("a")}} 元素抱持一致。({{bug("1451823")}})</li>
<li>{{SVGElement("textPath")}} 元素({{domxref("SVGTextPathElement")}})現在支援 SVG2 的 <code>path</code> 及 <code>side</code> 屬性。({{bug("1446617")}} 與 {{bug("1446650")}})</li>
<li>除 {{SVGElement("path")}} 之外,現在有更多元素支援{{domxref("SVGGeometryElement")}} 。({{bug("1325320")}})</li>
</ul>
<h3 id="JavaScript">JavaScript</h3>
<ul>
<li>已實作 {{jsxref("String.prototype.trimStart()")}} 及 {{jsxref("String.prototype.trimEnd()")}} 方法(參考 {{bug(1434007)}}。為了確保相容性,將保留 <code>trimLeft</code> 和 <code>trimRight</code> 作為別名。</li>
</ul>
<h3 id="API">API</h3>
<h4 id="新_API">新 API</h4>
<p><em>無變動。</em></p>
<h4 id="DOM">DOM</h4>
<ul>
<li>The {{domxref("Document.anchors", "anchors")}}, {{domxref("Document.applets", "applets")}}, {{domxref("Document.embeds", "embeds")}}, {{domxref("Document.forms", "forms")}}, {{domxref("Document.head", "head")}}, {{domxref("Document.images", "images")}}, {{domxref("Document.links", "links")}}, {{domxref("Document.plugins", "plugins")}}, and {{domxref("Document.scripts", "scripts")}} properties have been moved from the {{domxref("HTMLDocument")}} interface onto {{domxref("Document")}} ({{bug(1415588)}}).</li>
<li>The {{domxref("Node.getUserData()")}} and {{domxref("Node.setUserData()")}} methods have been removed from the platform completely ({{bug(749981)}}).</li>
<li>{{domxref("DOMTokenList.replace()")}} now returns a {{domxref("Boolean")}} to indicate whether the replacement occurred successfully, rather than void ({{bug(1444909)}}).</li>
</ul>
<h4 id="DOM_事件">DOM 事件</h4>
<p><em>無變動。</em></p>
<h4 id="Service_workers">Service workers</h4>
<p><em>無變動。</em></p>
<h4 id="Media_及_WebRTC">Media 及 WebRTC</h4>
<p>{{domxref("AudioContext.AudioContext", "AudioContext()")}} 建構式現在可以選擇性傳入一個 {{domxref("AudioContextOptions")}} 型態的 <code>options</code> 參數,用以調整新的 AudioContext 下偏好的延遲時間及取樣率。</p>
<h4 id="Canvas_及_WebGL">Canvas 及 WebGL</h4>
<p><em>無變動。</em></p>
<h3 id="CSSOM">CSSOM</h3>
<p><em>無變動。</em></p>
<h3 id="HTTP">HTTP</h3>
<ul>
<li>已實作 cookie 管理中的 <code><strong>SameSite</strong></code>,見 <a href="/en-US/docs/Web/HTTP/Headers/Set-Cookie">Set-Cookie</a> 及 <a href="/en-US/docs/Web/HTTP/Cookies">HTTP cookies</a>。({{bug(795346)}})</li>
</ul>
<h3 id="安全性">安全性</h3>
<p><em>無變動。</em></p>
<h3 id="外掛程式">外掛程式</h3>
<p><em>無變動。</em></p>
<h3 id="其他">其他</h3>
<p><em>無變動。</em></p>
<h2 id="Web_平台中移除的項目">Web 平台中移除的項目</h2>
<h3 id="HTML_2">HTML</h3>
<p><em>無變動。</em></p>
<h3 id="CSS_2">CSS</h3>
<p><em>無變動。</em></p>
<h3 id="APIs">APIs</h3>
<p><em>無變動。</em></p>
<h3 id="SVG_2">SVG</h3>
<ul>
<li>從未良好實作且已為標準所廢棄的 {{domxref("SVGViewElement")}}<code>.viewTarget</code> 屬性已經移除。({{bug(1455763)}})</li>
<li>在標準規格中廢棄的下列屬性已經自 {{domxref("SVGSVGElement")}} 移除({{bug(1133172)}}):
<ul>
<li><code>pixelUnitToMillimeterX</code></li>
<li><code>pixelUnitToMillimeterY</code></li>
<li><code>screenPixelToMillimeterX</code></li>
<li><code>screenPixelToMillimeterY</code></li>
</ul>
</li>
<li>不在標準規格內的 <code>SVGNumber()</code> 建構式已經移除。({{bug("1455940")}})</li>
</ul>
<h3 id="其他_2">其他</h3>
<p><em>無變動。</em></p>
<h2 id="附加元件及_Mozilla_軟體開發相關變動">附加元件及 Mozilla 軟體開發相關變動</h2>
<h3 id="WebExtensions">WebExtensions</h3>
<p><em>無變動。</em></p>
<h2 id="請參見">請參見</h2>
<ul>
<li>Firefox 61 網站相容資訊</li>
</ul>
<h2 id="舊版資訊">舊版資訊</h2>
<p>{{Firefox_for_developers(60)}}</p>
<p> </p>
|