Firefox 25 for developers 编辑

Changes for Web developers

New in Firefox DevTools

  • The inspector now features autocompletion for CSS names and values.
  • The debugger now lets you "black box" script files, to prevent breakpoints from stopping in library code you're not interested in debugging.
  • The Profiler now has the ability to save and import profiling results. "Show Gecko Platform Data" is now an option in the Firefox developer tools options.
  • The Network panel has a right-click context menu, with copy and resend URL commands.
  • Numerous under-the-hood changes may make some rewriting necessary for addons that modify the DevTools.

CSS

HTML

  • The srcdoc attribute of <iframe>, allowing the inline specification of the content of an <iframe>, is now supported (bug 802895).
  • When used with a "image/jpeg" type, the method HTMLCanvasElement.toBlob now accepts a third attribute defining the quality of the image (bug 891884).

JavaScript

EcmaScript 2015 implementation continues!

Interfaces/APIs/DOM

  • The Web Audio API is now supported. An incomplete implementation was previously available behind a preference (bug 779297).
  • Some IME related keys on Windows are supported by KeyboardEvent.key (bug 865565), see the key name table for the detail.
  • Firefox for Metro now dispatches key events in the same way as the desktop version (bug 843236).
  • keypress event is no longer dispatched if preventDefault() of preceding keydown event is called (bug 501496), see the document of keydown event for the detail.
  • Renamed the Future interface to Promise (bug 884279).
  • The srcDoc property on the HTMLIFrameElement interface, allowing the inline specification of the content of an <iframe>, is now supported (bug 802895).
  • The createTBody() method on the HTMLTableElement interface, allowing to get its <tbody>, is now supported (bug 813034).
  • The Range.collapse() method toStart parameter is now optional and default to false, like defined in the spec (bug 891340).
  • Support of ParentNode interface on Document and DocumentFragment has been added (bug 895974).
  • The previousElementSibling and nextElementSibling have been moved to ChildNode allowing them to be called not only on a Element object but also on a CharacterData or DocumentType object (bug 895974).
  • The navigator.geolocation property has been updated to match the spec. It never returns null. When the preference geo.enabled is set to false, it now returns undefined (bug 884921).
  • The videoPlaybackQuality attribute on the HTMLVideoElement interface has been changed to the getVideoPlaybackQuality method. (bug 889205)
  • The non-standard GlobalObjectConstructor interface has been removed (bug 898136). This interface was used to add arguments to the constructors of APIs that Firefox add-ons were exposing on the global object. This capability has been removed; note that at this time there's no replacement for this functionality.

MathML

No change.

SVG

No change.

See also

Older versions

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:49 次

字数:13635

最后编辑:6 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文