Firefox 14 for developers

  • 版本网址缩略名: Mozilla/Firefox/Releases/14
  • 版本标题: Firefox 14 for developers
  • 版本 id: 381899
  • 创建于:
  • 创建者: ethertank
  • 是否是当前版本?
  • 评论 46 words added, 141 words removedMoved From Firefox_14_for_developers to Mozilla/Firefox/Releases/14

修订内容

{{ draft() }}

{{ ReleaseChannelInfo("14") }}

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

Changes for Web developers

HTML

  • {{ HTMLElement("progress") }}元素不在错误的归为一个表单元素,因此不再有一个form属性.
  • The default modifier keys for the accesskey of HTML contents on Mac are changed to Control+Option.  This is the same as WebKit-based browsers on Mac.

DOM

  • input events are fired also on editing host element of contenteditable editor and root element of designMode editor.
  • {{ domxref("DOMException", "DOMException.code") }}已被废弃,根据最新的DOM Level 4 规范.
  • {{ domxref("Range.insertNode()") }} method now works correctly when used on collapsed ranges.
  • The {{ domxref("BlobBuilder", "MozBlobBuilder") }} interface has been deprecated in favor of the constructor on {{ domxref("Blob") }}. If you use MozBlobBuilder you'll see a warning message in the Web Console.
  • Support for the Mutation Observers has been landed. It is designed as a replacement for the Mutation Events in DOM3, which has a number of issues regarding performance.
  • The {{ domxref("HTMLImageElement") }} interface's x and y properties were removed in Gecko 7.0 {{ geckoRelease("7.0") }} but restored in this release for compatibility reasons.
  • {{ domxref("Document") }}上的方法execCommandShowHelp()queryCommandText(),没有任何作用,已被删除.
  • The GeoPositionAddress interface, an obsolete part of the Geolocation API, has been removed.
  • {{ domxref("Storage", "localStorage/sessionStorage") }} now correctly return undefined instead of null for undeclared keys through property access.

JavaScript

  • 试验性的支持 ECMAScript 6 中的MapSet 对象.

CSS

  • The {{ cssxref("text-transform") }} and {{ cssxref("font-variant") }} CSS properties have been fixed to correctly handle the iİ and ıI Turkic-specific case pairs.
  • The Dutch IJ digraph is now correctly handled by text-transform: capitalization. Similarly the Greek letter Σ, which has two lowercase forms, σ and ς, is now correctly handled by text-transform: lowercase.
  • As it has been removed from the draft standard, support for the skew() function has been removed from {{ cssxref("transform") }} property.
  • The {{ cssxref("column-fill") }} property has been implemented (prefixed).
  • The syntax for {{ cssxref("border-image") }} has been updated to match the latest revision of the specification; it no longer accepts a trailing slash ("/").

MathML

  • The syntax of the statusline action type on {{ MathMLElement("maction") }} elements has been adjusted to follow the MathML specification.

HTTP

  • Gecko开始支持新的HTTP 308永久重定向 状态码. 由于Gecko并不区分永久重定向和零食重定向,所以该状态码的表现行为和307 临时重定向状态码是一样的, 和302以及301状态码的区别是,它们禁止用户代理改变重定之后的HTTP方法(POST还是POST, GET还是GET).

Changes for Mozilla and add-on developers

JavaScript代码模块

source-editor.jsm

  • Added a keyboard shortcut to toggle commenting for the current selection (Ctrl-/ or Cmd-/ on Mac OS X).
  • Added the Ctrl-[ and Ctrl-] keyboard shortcuts for moving the text input position to the beginning and end of the current block.
  • Added the new getLineStart() and getLineEnd() methods.

XUL

  • 在 {{ XULElem("window") }}元素上添加了新的 {{ XULAttr("fullscreenbutton") }}属性; 将该属性设置为true,会在窗口上添加一个进入全屏模式的按钮.

XPCOM接口

  • {{ interface("nsILocalFile") }}接口被合并到{{ interface("nsIFile") }}接口中. (bug 682360).
  • The methods in {{ interface("nsIPlacesImportExportService") }} for importing bookmarks have all been removed in favor of the BookmarkHTMLUtils.jsm JavaScript code module.
  • {{ interface("nsIDOMGeoPositionAddress") }} 接口已被移除.

拼写检查

  • Dictionary names are now parsed as full BCP 47 language tags (bug 730209, bug 741842). Developers are encouraged to not hard-code the name of their language in their dictionary names.

相关链接

{{ languages( { "ja": "ja/Firefox_14_for_developers","en": "en/Firefox_14_for_developers"} ) }}

修订版来源

<p>{{ draft() }}</p>
<p>{{ ReleaseChannelInfo("14") }}</p>
<p>Want to help document Firefox 14? See the <a class="external" href="http://beta.elchi3.de/doctracker/#list=fx&amp;version=14.0" title="http://beta.elchi3.de/doctracker/#list=fx&amp;version=14.0">list of bugs that need to be written about</a> and pitch in!</p>
<h2 id="Changes_for_Web_developers">Changes for Web developers</h2>
<h3 id="HTML">HTML</h3>
<ul> <li>{{ HTMLElement("progress") }}元素不在错误的归为一个表单元素,因此不再有一个<code>form</code>属性.</li> <li>The default modifier keys for the <code><a href="/zh-cn/HTML/Global_attributes" title="Global attributes">accesskey</a></code> of HTML contents on Mac are changed to Control+Option.  This is the same as WebKit-based browsers on Mac.</li>
</ul>
<h3 id="DOM">DOM</h3>
<ul> <li><a href="/zh-cn/DOM/DOM_event_reference/input" title="input">input</a> events are fired also on editing host element of <a href="/zh-cn/DOM/element.contentEditable" title="Element.contentEditable">contenteditable</a> editor and root element of <a href="/zh-cn/DOM/document.designMode" title="document.designMode">designMode</a> editor.</li> <li>{{ domxref("DOMException", "DOMException.code") }}已被废弃,根据最新的DOM Level 4 规范.</li> <li>{{ domxref("Range.insertNode()") }} method now works correctly when used on collapsed ranges.</li> <li>The {{ domxref("BlobBuilder", "MozBlobBuilder") }} interface has been deprecated in favor of the constructor on {{ domxref("Blob") }}. If you use <code>MozBlobBuilder</code> you'll see a warning message in the Web Console.</li> <li>Support for the <a href="/zh-cn/DOM/DOM_Mutation_Observers" title="zh-cn/DOM/DOM_Mutation_Observers">Mutation Observers</a> has been landed. It is designed as a replacement for the Mutation Events in DOM3, which has a number of issues regarding performance.</li> <li>The {{ domxref("HTMLImageElement") }} interface's <code>x</code> and <code>y</code> properties were removed in Gecko 7.0 {{ geckoRelease("7.0") }} but restored in this release for compatibility reasons.</li> <li>{{ domxref("Document") }}上的方法<code>execCommandShowHelp()</code>和<code>queryCommandText()</code>,没有任何作用,已被删除.</li> <li>The <code>GeoPositionAddress</code> interface, an obsolete part of the <a href="/zh-cn/Using_geolocation" title="zh-cn/Using_geolocation">Geolocation</a> API, has been removed.</li> <li>{{ domxref("Storage", "localStorage/sessionStorage") }} now correctly return <code>undefined</code> instead of <code>null</code> for undeclared keys through property access.</li>
</ul>
<h3 id="JavaScript">JavaScript</h3>
<ul> <li>试验性的支持 ECMAScript 6 中的<a href="/zh-cn/JavaScript/Reference/Global_Objects/Map" title="https://developer.mozilla.org/zh-cn/JavaScript/Reference/Global_Objects/Map">Map</a>和<a href="/zh-cn/JavaScript/Reference/Global_Objects/Set" title="https://developer.mozilla.org/zh-cn/JavaScript/Reference/Global_Objects/Set">Set</a> 对象.</li>
</ul>
<h3 id="CSS">CSS</h3>
<ul> <li>The {{ cssxref("text-transform") }} and {{ cssxref("font-variant") }} CSS properties have been fixed to correctly handle the <code>i</code> → <code>İ</code> and <code>ı</code> → <code>I</code> <a class="external" href="http://en.wikipedia.org/wiki/Turkic_languages" title="http://en.wikipedia.org/wiki/Turkic_languages">Turkic</a>-specific case pairs.</li> <li>The Dutch IJ digraph is now correctly handled by <code>text-transform: capitalization</code>. Similarly the Greek letter <code>Σ</code>, which has two lowercase forms, <code>σ</code> and <code>ς</code>, is now correctly handled by <code>text-transform: lowercase</code>.</li> <li>As it has been removed from the draft standard, support for the <code>skew()</code> function has been removed from {{ cssxref("transform") }} property.</li> <li>The {{ cssxref("column-fill") }} property has been implemented (prefixed).</li> <li>The syntax for {{ cssxref("border-image") }} has been updated to match the latest revision of the specification; it no longer accepts a trailing slash ("/").</li>
</ul>
<h3 id="MathML">MathML</h3>
<ul> <li>The syntax of the <code>statusline</code> action type on {{ MathMLElement("maction") }} elements has been adjusted to follow the MathML specification.</li>
</ul>
<h3 id="HTTP">HTTP</h3>
<ul> <li>Gecko开始支持新的<a href="/zh-cn/HTTP" title="HTTP">HTTP</a> <a href="/zh-cn/HTTP/HTTP_response_codes#308" title="https://developer.mozilla.org/zh-cn/HTTP/HTTP_response_codes#308"><code>308</code>永久重定向</a> 状态码. 由于Gecko并不区分永久重定向和零食重定向,所以该状态码的表现行为和<a href="/zh-cn/HTTP/HTTP_response_codes#307" title="https://developer.mozilla.org/zh-cn/HTTP/HTTP_response_codes#307"><code>307 临时重定向</code></a>状态码是一样的, 和302以及301状态码的区别是,它们禁止用户代理改变重定之后的HTTP方法(<code>POST还是</code><code>POST</code>, <code>GET</code>还是<code>GET</code>).</li>
</ul>
<h2 id="Changes_for_Mozilla_and_add-on_developers">Changes for Mozilla and add-on developers</h2>
<h3 id="JavaScript代码模块">JavaScript代码模块</h3>
<h4 id="source-editor.jsm">source-editor.jsm</h4>
<ul> <li>Added a keyboard shortcut to toggle commenting for the current selection (Ctrl-/ or Cmd-/ on Mac OS X).</li> <li>Added the Ctrl-[ and Ctrl-] keyboard shortcuts for moving the text input position to the beginning and end of the current block.</li> <li>Added the new <a href="/zh-cn/JavaScript_code_modules/source-editor.jsm#getLineStart%28%29" title="zh-cn/JavaScript_code_modules/source-editor.jsm#getLineStart%28%29"><code>getLineStart()</code></a> and <a href="/zh-cn/JavaScript_code_modules/source-editor.jsm#getLineEnd%28%29" title="zh-cn/JavaScript_code_modules/source-editor.jsm#getLineEnd%28%29"><code>getLineEnd()</code></a> methods.</li>
</ul>
<h3 id="XUL">XUL</h3>
<ul> <li>在 {{ XULElem("window") }}元素上添加了新的 {{ XULAttr("fullscreenbutton") }}属性; 将该属性设置为<code>true,会在</code>窗口上添加一个进入全屏模式的按钮.</li>
</ul>
<h3 class="editable" id="XPCOM接口"><span>XPCOM接口</span></h3>
<ul> <li>{{ interface("nsILocalFile") }}接口被合并到{{ interface("nsIFile") }}接口中. (<a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=682360" title="https://bugzilla.mozilla.org/show_bug.cgi?id=682360">bug 682360</a>).</li> <li>The methods in {{ interface("nsIPlacesImportExportService") }} for importing bookmarks have all been removed in favor of the <code><a href="/zh-cn/JavaScript_code_modules/BookmarkHTMLUtils.jsm" title="zh-cn/JavaScript_code_modules/BookmarkHTMLUtils.jsm">BookmarkHTMLUtils.jsm</a></code> JavaScript code module.</li> <li>{{ interface("nsIDOMGeoPositionAddress") }} 接口已被移除.</li>
</ul>
<h3 id="拼写检查">拼写检查</h3>
<ul> <li>Dictionary names are now parsed as full <a class="external" href="http://tools.ietf.org/html/bcp47" title="http://tools.ietf.org/html/bcp47">BCP 47</a> language tags (<a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=730209" title="https://bugzilla.mozilla.org/show_bug.cgi?id=730209">bug 730209</a>, <a class="link-https" href="https://bugzilla.mozilla.org/show_bug.cgi?id=741842" title="https://bugzilla.mozilla.org/show_bug.cgi?id=741842">bug 741842</a>). Developers are encouraged to not hard-code the name of their language in their dictionary names.</li>
</ul>
<h2 id="相关链接">相关链接</h2>
<ul> <li><a href="/zh-cn/Firefox_13_for_developers" title="zh-cn/Firefox_13_for_developers">Firefox 13 for developers</a></li> <li><a href="/zh-cn/Firefox_12_for_developers" title="zh-cn/Firefox_12_for_developers">Firefox 12 for developers</a></li> <li><a href="/zh-cn/Firefox_11_for_developers" title="zh-cn/Firefox 11 for developers">Firefox 11 for developers</a></li> <li><a href="/zh-cn/Firefox_10_for_developers" title="zh-cn/Firefox 10 for developers">Firefox 10 for developers</a></li> <li><a href="/zh-cn/Firefox_9_for_developers" title="zh-cn/Firefox 9 for developers">Firefox 9 for developers</a></li> <li><a href="/zh-cn/Firefox_8_for_developers" title="zh-cn/Firefox 8 for developers">Firefox 8 for developers</a></li> <li><a href="/zh-cn/Firefox_7_for_developers" title="zh-cn/Firefox 7 for developers">Firefox 7 for developers</a></li> <li><a href="/zh-cn/Firefox_6_for_developers" title="zh-cn/Firefox 6 for developers">Firefox 6 for developers</a></li> <li><a href="/zh-cn/Firefox_5_for_developers" title="zh-cn/Firefox 5 for developers">Firefox 5 for developers </a></li> <li><a href="/zh-cn/Firefox_4_for_developers" title="zh-cn/Firefox 4 for developers">Firefox 4 for developers </a></li> <li><a href="/zh-cn/Firefox_3.6_for_developers" title="zh-cn/Firefox 3.6 for developers">Firefox 3.6 for developers </a></li> <li><a href="/zh-cn/Firefox_3.5_for_developers" title="zh-cn/Firefox 3.5 for developers">Firefox 3.5 for developers</a></li> <li><a href="/zh-cn/Firefox_3_for_developers" title="zh-cn/Firefox 3 for developers">Firefox 3 for developers</a></li> <li><a href="/zh-cn/Firefox_2_for_developers" title="zh-cn/Firefox 2 for developers">Firefox 2 for developers</a></li> <li><a href="/zh-cn/Firefox_1.5_for_developers" title="zh-cn/Firefox 1.5 for developers">Firefox 1.5 for developers</a></li>
</ul>
<p>{{ languages( { "ja": "ja/Firefox_14_for_developers","en": "en/Firefox_14_for_developers"} ) }}</p>
恢复到这个版本