--- title: Firefox 19 for developers slug: Mozilla/Firefox/Releases/19 translation_of: Mozilla/Firefox/Releases/19 ---
Firefox 19已于2013年2月19日正式发布.
Map
和 Set
对象的 size()
方法变成了 size
属性. ({{bug("807001")}})Map
和 Set
对象新增了一个 clear() 方法. ({{bug("805003")}})vh
, vw
, vmin
以及 vmax
({{bug("503720")}})-moz-initial
脱前缀 ({{bug("806068")}}).不过 -moz-initial
仍然会作为别名保留一段时间,但仍然推荐你尽快改用 initial
.full-width
关键字, which allows a more seamless inclusion of Latin characters in text using ideographic fixed-width characters, like Chinese or Japanese ({{bug("774560")}}).<color-stop>
上( {{cssxref("<gradient>")}}上的一个值).HTMLCollection
对象,而不是以前的 NodeList 对象
. ({{bug("799464")}}).mozLastModifiedDate
属性. ({{bug("793955")}})isPointInStroke
方法. ({{bug("803124")}}).toBlob
方法 ({{bug("648610")}}).true
({{bug("801425")}}).document.createElement(null)时
, null
会被转换成字符串,就像执行了 document.createElement("null")
.注: A key change in Firefox 19 is that nsresult
is now strongly typed. This will help make it easier to detect bugs that are caused by mishandling of return values, but may cause existing code to break if it's making incorrect assumptions in this regard.
getBrowserSelection()
now returns the selected text in a text input field. As a result, gContextMenu.isTextSelected
will be true
when the user selects text in a text input field that is not a password field. ({{bug("565717")}})Dict()
now takes a JSON String. Dict.toJSON()
was added, and it returns a JSON String. ({{bug("727967")}})addObserver()
method changes from {{interface("imgIDecoderObserver")}} to {{interface("imgINotificationObserver")}}. The notify()
method of {{interface("imgINotificationObserver")}} is not scriptable, so you need to use createScriptedObserver()
from {{interface("imgITools")}}.contentLength
属性的类型由 long
改成 int64_t
.