Firefox 20 for developers

  • 版本网址缩略名: Firefox_20_for_developers
  • 版本标题: Firefox 20 for developers
  • 版本 id: 371877
  • 创建于:
  • 创建者: ziyunfei
  • 是否是当前版本?
  • 评论

修订内容

{{ draft() }}

{{ ReleaseChannelInfo("20", "20", "April 2013", "Nightly") }}

Want to help document Firefox 20? See the list of bugs that need to be written about and pitch in!

Web开发者需要注意的变化

HTML

  • 实现了{{HTMLElement("a")}}和{{HTMLElement("area")}}元素上的{{htmlattrxref("download", "a") }}属性({{bug("676619")}}).
  • 全局属性 dir 的值开始支持 auto ({{bug("548206")}}).

JavaScript

  • 实现了Weakmap.prototype.clear()方法 ({{bug("814562")}}).
  • 实现了Math.imul()方法,可以进行C风格的32位整数乘法运算.还不属于harmony (EcmaScript 6)提案,所以是非标准的({{bug("808148")}}).
  • Web apps using draggable text with Kinetic 3.x are working, even when using the Cairo canvas backend. ({{bug("835064")}})
  • E4X规范中的for each...in语句被废弃,请使用ES6中的for...of语句代替 ({{Bug("804834")}}).

CSS

DOM

  • {{domxref("HTMLMediaElement")}}支持可playbackRate属性(both read and write), with pitch correction. Pitch correction can be controlled using the property mozPreservesPitch ({{bug('495040')}}).
  • CSSOM: 实现了新的{{domxref("CSSGroupingRule")}}和{{domxref("CSSConditionRule")}} ({{bug("814907")}}).
  • CSSOM:{{domxref("CSSRule")}}上的常量CSSRule.MOZ_KEYFRAME_RULECSSRule.MOZ_KEYFRAMES_RULE去掉前缀成为了CSSRule.KEYFRAME_RULECSSRule.KEYFRAMES_RULE.带前缀的版本仍暂时保留让开发者过度他们的代码{{bug("816431")}}).
  • CSSOM: 现在可以设置{{domxref("CSSMediaRule")}}上的conditionText属性的值 ({{bug("815021")}}).
  • {{domxref("DOMParser")}}上的 parseFromStream和parseFromBuffer方法在web页面上被禁用.({{bug('816410')}}).
  • XMLSerializer上的serializeToStream方法在web页面上被禁用.({{bug('816410')}}).
  • TextDecoderTextEncoder接口可以在Worker中使用 ({{bug('795542')}}).
  • 实现了CSS.supports()方法({{bug("779917")}}).
  • 实现了UndoManager({{bug("617532")}}).

附加组件和Mozilla开发者需要注意的变化

  • 移除了nsIDOMParserJS接口{{bug('816410')}}.使用nsIDOMParser来代替.

相关链接

更早版本

{{Firefox_for_developers('19')}}

修订版来源

<p>{{ draft() }}</p>
<p>{{ ReleaseChannelInfo("20", "20", "April 2013", "Nightly") }}</p>
<p>Want to help document Firefox 20? See the <a class="external" href="http://beta.elchi3.de/doctracker/#list=fx&amp;version=20.0">list of bugs that need to be written about</a> and pitch in!</p>
<h2 id="Web.E5.BC.80.E5.8F.91.E8.80.85.E9.9C.80.E8.A6.81.E6.B3.A8.E6.84.8F.E7.9A.84.E5.8F.98.E5.8C.96">Web开发者需要注意的变化</h2>
<h3 id="HTML">HTML</h3>
<ul>
  <li>实现了{{HTMLElement("a")}}和{{HTMLElement("area")}}元素上的{{htmlattrxref("download", "a") }}属性({{bug("676619")}}).</li>
  <li><a href="/en-US/docs/HTML/Global_attributes" title="/en-US/docs/HTML/Global_attributes">全局属性</a> <a href="/en-US/docs/HTML/Global_attributes#attr-dir" title="/en-US/docs/HTML/Global_attributes"><code>dir</code></a> 的值开始支持 <code>auto</code> ({{bug("548206")}}).</li>
</ul>
<h3 id="JavaScript">JavaScript</h3>
<ul>
  <li>实现了<code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/WeakMap" title="/en-US/docs/JavaScript/Reference/Global_Objects/WeakMap">Weakmap</a>.prototype.clear()</code>方法 ({{bug("814562")}}).</li>
  <li>实现了<code><a href="/en-US/docs/JavaScript/Reference/Global_Objects/Math/imul" title="/en-US/docs/JavaScript/Reference/Global_Objects/Math/imul">Math.imul()</a></code>方法,可以进行C风格的32位整数乘法运算.还不属于harmony (EcmaScript 6)提案,所以是非标准的({{bug("808148")}}).</li>
  <li>Web apps using draggable text with Kinetic 3.x are working, even when using the Cairo canvas backend. ({{bug("835064")}})</li>
  <li>E4X规范中的<a href="/en-US/docs/JavaScript/Reference/Statements/for_each...in" title="/en-US/docs/JavaScript/Reference/Statements/for_each...in">for each...in</a>语句被废弃,请使用ES6中的<a href="/en-US/docs/JavaScript/Reference/Statements/for...of" title="/en-US/docs/JavaScript/Reference/Statements/for...of">for...of</a>语句代替 ({{Bug("804834")}}).</li>
</ul>
<h3 id="CSS">CSS</h3>
<ul>
  <li><a href="/en-US/docs/CSS/Using_CSS_flexible_boxes" title="/en-US/docs/CSS/Using_CSS_flexible_boxes">CSS Flexbox</a>默认开启,不需要设置about:config.</li>
  <li>实现了<a href="https://dvcs.w3.org/hg/FXTF/raw-file/tip/masking/index.html" title="https://dvcs.w3.org/hg/FXTF/raw-file/tip/masking/index.html">CSS Masking specification</a>中的<code>mask-type属性</code>({{bug("793617")}}).</li>
</ul>
<h3 id="DOM">DOM</h3>
<ul>
  <li>{{domxref("HTMLMediaElement")}}支持可<code>playbackRate</code>属性(both read and write), with pitch correction. Pitch correction can be controlled using the property <code>mozPreservesPitch</code> ({{bug('495040')}}).</li>
  <li>CSSOM: 实现了新的{{domxref("CSSGroupingRule")}}和{{domxref("CSSConditionRule")}} ({{bug("814907")}}).</li>
  <li>CSSOM:{{domxref("CSSRule")}}上的常量<span id="summary_alias_container"><span id="short_desc_nonedit_display">CSSRule.MOZ_KEYFRAME_RULE</span></span>和<span id="summary_alias_container"><span id="short_desc_nonedit_display">CSSRule.MOZ_KEYFRAMES_RULE</span></span>去掉前缀成为了<span id="summary_alias_container"><span id="short_desc_nonedit_display">CSSRule.KEYFRAME_RULE</span></span>和<span id="summary_alias_container"><span id="short_desc_nonedit_display">CSSRule.KEYFRAMES_RULE</span></span>.带前缀的版本仍暂时保留让开发者过度他们的代码{{bug("816431")}}).</li>
  <li>CSSOM: 现在可以设置{{domxref("CSSMediaRule")}}上的<code>conditionText属性的值</code> ({{bug("815021")}}).</li>
  <li>{{domxref("DOMParser")}}上的 <code>parseFromStream和</code><code>parseFromBuffer</code>方法在web页面上被禁用.({{bug('816410')}}).</li>
  <li><code><a href="/en-US/docs/XMLSerializer">XMLSerializer</a></code>上的<code>serializeToStream</code>方法在web页面上被禁用.({{bug('816410')}}).</li>
  <li><code>TextDecoder</code>和<code>TextEncoder</code>接口可以在Worker中使用 ({{bug('795542')}}).</li>
  <li>实现了<code>CSS.supports()方法</code>({{bug("779917")}}).</li>
  <li>实现了<code>UndoManager</code>({{bug("617532")}}).</li>
</ul>
<h2 id=".E9.99.84.E5.8A.A0.E7.BB.84.E4.BB.B6.E5.92.8CMozilla.E5.BC.80.E5.8F.91.E8.80.85.E9.9C.80.E8.A6.81.E6.B3.A8.E6.84.8F.E7.9A.84.E5.8F.98.E5.8C.96">附加组件和Mozilla开发者需要注意的变化</h2>
<ul>
  <li>移除了nsIDOMParserJS接口{{bug('816410')}}.使用<a href="/en-US/docs/nsIDOMParser" title="/en-US/docs/nsIDOMParser">nsIDOMParser</a>来代替.</li>
</ul>
<h2 id=".E7.9B.B8.E5.85.B3.E9.93.BE.E6.8E.A5">相关链接</h2>
<ul>
  <li><a href="http://www.mozilla.org/en-US/firefox/20.0a1/nightlynotes/">Firefox&nbsp;20 Aurora Release Notes</a></li>
  <li><a href="/en-US/docs/Site_Compatibility_for_Firefox_20">Site Compatibility for Firefox 20</a></li>
</ul>
<h3 id=".E6.9B.B4.E6.97.A9.E7.89.88.E6.9C.AC">更早版本</h3>
<p>{{Firefox_for_developers('19')}}</p>
恢复到这个版本