---
title: Firefox 26 for developers
slug: Mozilla/Firefox/Releases/26
translation_of: Mozilla/Firefox/Releases/26
---
{{FirefoxSidebar}}
Web开发者需要注意的变化
CSS
HTML
No change.
JavaScript
Interfaces/APIs/DOM
- {{domxref("DOMImplementation.createDocument")}} 方法的第三个参数
doctype
成为可选参数 ({{bug(909859)}}).
- 实现了新的 {{domxref("element.classList")}} 规范, 可以同时添加或删除多个类名, 比如
element.classList.add("x", "y", "z")
({{bug(814014)}}).
- 实现了 {{domxref("URL.URL", "URL()")}} 构造函数 ({{bug("887364")}}).
- 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")}}).
- The {{domxref("URL")}} interface is now accessible from Web Workers ({{bug("887364")}}).
- 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")}}).
- Path of the persistent storage has been changed from <profile>/indexedDB to <profile>/storage/persistent (on b2g from /data/local/indexedDB to /data/local/storage/persistent).
MathML
- 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")}}).
SVG
No change.
相关链接
更早版本
{{Firefox_for_developers('25')}}