aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/mozilla/firefox/releases/26/index.html
blob: 621e9f87c9679ddca023d32aecc3f58bcb304067 (plain)
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
---
title: Firefox 26 for developers
slug: Mozilla/Firefox/Releases/26
translation_of: Mozilla/Firefox/Releases/26
---
<div>{{FirefoxSidebar}}</div><h2 style="margin: 0px 0px 0.8em; padding: 0px;" id="Web开发者需要注意的变化">Web开发者需要注意的变化</h2>
<h3 id="CSS">CSS</h3>
<ul>
  <li> <code><a href="/zh-CN/docs/Web/CSS/text-decoration-line">text-decoration-line</a> </code>属性仍然带有前缀, 不过现在它把 <code>'blink'</code> 也看看成了它的合法属性值, 虽然并不会真正的让内容产生闪烁效果 ({{bug("812995")}}).</li>
  <li>非标准的 <code><a href="/zh-CN/docs/Web/CSS/-moz-text-blink">-moz-text-blink</a></code>  属性已被删除 ({{bug("812995")}}).</li>
  <li>实现了 <a href="http://dev.w3.org/csswg/css-images-4/" title="http://dev.w3.org/csswg/css-images-4/">CSS Image Values Level 4</a> 中的 <a href="/zh-CN/docs/Web/CSS/image-orientation" title="/zh-CN/docs/Web/CSS/image-orientation"><code>image-orientation </code></a>属性, 比起 Level 3, Level 4 增加了对 <code>from-image</code> 关键字和 EXIF 的支持.</li>
  <li>支持了 <code style="font-size: 14px;">position:sticky</code>, 需要开启 <code style="font-size: 14px;">layout.css.sticky.enabled</code> 选项({{bug(886646)}}).</li>
</ul>
<h3 id="HTML">HTML</h3>
<p><em>No change.</em></p>
<h3 id="JavaScript">JavaScript</h3>
<ul style="margin: 0px 0px 1.286em; padding: 0px; list-style-type: none;">
  <li style="padding: 0px;">实现了 ES6 中的 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math" title="/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math"><code style="font-style: inherit;">Math</code></a><code style="font-style: inherit;"><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Math/fround" title="/en-US/docs/JavaScript/Reference/Global_Objects/Math/fround">Math.fround()</a>方法 </code>({{bug("900125")}}).</li>
</ul>
<h3 id="InterfacesAPIsDOM">Interfaces/APIs/DOM</h3>
<ul>
  <li style="padding: 0px;">{{domxref("DOMImplementation.createDocument")}} 方法的第三个参数 <code>doctype </code>成为可选参数 ({{bug(909859)}}).</li>
  <li>实现了新的 {{domxref("element.classList")}} 规范, 可以同时添加或删除多个类名, 比如 <code>element.classList.add("x", "y", "z")</code> ({{bug(814014)}}).</li>
  <li style="padding: 0px;">实现了 {{domxref("URL.URL", "URL()")}} 构造函数 ({{bug("887364")}}).</li>
  <li style="padding: 0px;">The properties {{domxref("URLUtils.origin")}}, {{domxref("URLUtils.password")}}, and {{domxref("URLUtils.username")}} are now available to all interfaces implementing {{domxref("URLUtils")}}: {{domxref("URL")}}, {{domxref("Location")}}{{domxref("HTMLAnchorElement")}}, and {{domxref("HTMLAreaElement")}} ({{bug("887364")}}).</li>
  <li style="padding: 0px;">The {{domxref("URL")}} interface is now accessible from Web Workers ({{bug("887364")}}).</li>
  <li style="padding: 0px;">IndexedDB can now be used as a "optimistic" storage area so it doesn't require any prompts and data is stored in a pool with LRU eviction policy, in short temporary storage ({{bug("785884")}}).</li>
  <li style="padding: 0px;">Path of the persistent storage has been changed from &lt;profile&gt;/indexedDB to &lt;profile&gt;/storage/persistent (on b2g from /data/local/indexedDB to /data/local/storage/persistent).</li>
</ul>
<h3 id="MathML">MathML</h3>
<ul>
  <li>Inconsistent renderings of {{MathMLElement("mmultiscripts")}}{{MathMLElement("msub")}}, {{MathMLElement("msup")}} and {{MathMLElement("msubsup")}} have been unified and the error handling of these elements has been improved ({{bug("827713")}}).</li>
</ul>
<h3 id="SVG">SVG</h3>
<p><em>No change.</em></p>
<h2 id="相关链接">相关链接</h2>
<ul>
  <li><a href="/en-US/docs/Mozilla/Firefox/Releases/26/Site_Compatibility">Firefox 26网站兼容性</a></li>
</ul>
<h3 id="更早版本">更早版本</h3>
<p>{{Firefox_for_developers('25')}}</p>