📜 ⬆️ ⬇️

Prototype 1.6.0.3

On September 29, a new version of the JavaScript framework, Prototype, was released.
Anyone who uses the 1.6 branch, the developers recommend upgrading .
This is mainly a bug fix - 30 bugs are closed, plus 25 different improvements.

Download Prototype 1.6.0.3 (126 KB)
Download Prototype 1.6.0.3-mini (73.5 KB) - minimized version
Post Prototype 1.6.0.3 is out on Prototype & script.aculo.us Google Groups

The previous version 1.6.0.2 was released 9 months ago - January 25, 2008.
')

List of changes
* Add support for the Chrome browser in jstest.rb. (Andrew Dupont)
* Workaround a JavaScript exception in Opera. (Thomas Fuchs)
* Improve NodeList detection for Safari's $ A function. (Garrett Smith, jddalton)
* Operas in order to avoid false positives in IE. (Tobie Langel, jddalton)
* Rename variable in Form.Element.Serializers.select. (jddalton)
* Coerce Opera's version of the string. (Sam Holman, jddalton)
* Ensure Object.isElement handles "falsy" values ​​properly. (kangax)
* Fix exiting test task on INT signal. (Samuel Lebeau)
* Fix unit test freeze in IE. (Tobie Langel)
* Ensure Hash does not return keys from the prototype chain (eg, constructor, valueOf, toString). (kangax)
* Fix toString / valueOf sharing the same method reference in closure in Class # addMethods. Use plain property assignment, since Object.extend fails to enumerate over toString / valueOf. (kangax)
* Stop Form.Element.disable from stealing focus. (jddalton)
* Ensure Element.hide and Element.show return an element, even if you pass an element ID. (Andrew Dupont)
* Element # getStyle ('height') where you can set the "auto." (Kangax, jddalton)
* Add unit tests for Element # descendantOf. (jddalton)
* Form # serializeElements should not serialize file inputs. (kangax, Lonesome Boy)
* Fix an issue with calling Event.pointer before the DOM is loaded. (kangax, jddalton) [# 4 state: resolved]
Element # down on an input element (humeniuc, kangax)
* More unit tests for Object.isHash. (Tobie Langel)
* Allow Function # argumentNames to handle line breaks between arguments. (Geoff M. Granum, Tobie Langel) [# 63 state: resolved]
* For consistency, add additional optional parameter “context” to Number.prototype.times. (Samuel Lebeau)
* Replace all instances of foo .__ proto__ by foo ['__ proto__'] for Caja-compliance. (Tobie Langel)
* Speed ​​up Function # argumentNames. Avoid Enum dependency. (Samuel Lebeau, Tobie Langel)
* Fix Event # element accessing inexistent tagName property (eg when element is a document). (kangax)
* Amended failing Element # identify test.
* Refactor unit tests. Unit tests are now dynamically generated from a JavaScript test file and optional HTML, JS and CSS fixtures. [Tobie Langel]
* Safari fix issue where you can view reports.
* Greatly simplify IE's implementation of Element # descendantOf.
* Prevent exception when using this attribute is not present. [gryn, Andrew Dupont]
* Fix issues where Firefox improperly returns the call to Event.element. Also fixes possible exception in Event.element in IE. [jdalton, Andrew Dupont]
* Fixed issue where it’s returned to the back button. [mzsanford, kangax, Andrew Dupont]
* Integrate support for the W3C Selectors API into the Selector class. Will now use the API when possible (browser supports the API * and * recognizes the given selector). Ordering to comply with the CSS spec.
* Avoid re-extending element in Element # getDimensions. [kangax]
* Prevent Hash # toQueryString from serializing objets. [kangax, tobie langel]
* Fix Event # pointer in IE standard mode. Closes # 9920. [kangax, tobie langel]
* Instanciate Test.Unit.Logger on window load. [Tobie Langel]
* Unit tests clean-up. [Tobie Langel]
* Refactor String # escapeHTML to avoid using the `with` statement. [Tobie Langel]
* Remove usage of the statement with unit statements tests. [Tobie Langel]
* Complete rewrite of the deprecation helper, now renamed UpdateHelper and useable by third-party libs. [Tobie Langel]
* Make Element # writeAttribute handle frameborder attribute in IE. Closes # 11068. [staaky, tobie langel]
* Minor clean-up of selector.js. Closes # 10844. [RQuadling]
* Make String # unescapeHTML strip tags in IE. Closes # 10173. [kangax]
* Stop form observers in unit tests. Closes # 10938. [kangax]
* Performance improvements for Enumerables. Closes # 11264. [Ben, Samuel Lebeau]
* deprecation extension: mark Hash.toJSON () as removed. [Tobie Langel]
* deprecation extension: mark Class.create () used without arguments as deprecated. [Tobie Langel]
* deprecation extension: mark Event.unloadCache as removed rather than deprecated. [Tobie Langel]
* deprecation extension: log everything * but * deprecations with console.error. [Tobie Langel]
Firebug's console.warn and console.error. [Andrew Dupont, Tobie Langel]
* Make tagName comparisons XHTML-compliant. Closes # 11012, # 11013, # 11014. [cfis, tobie langel]
* Avoid breaking Element.prototype in browsers which support it. Closes # 11004. [cfis, tobie langel]
# Prevent Element # cumulativeOffset, Element # getOffsetParent, Element # positionedOffset, Element # viewportOffset and Element # Closes # 9416, # 10192, # 10248. [ronstoney, psiborg, kangax]
* Prevent Enumerable for each loop # less than 1. Closes # 10665. [kangax, tobie langel]
* Allow Selector to correctly identify the presence of namespaced attributes. Closes # 10987. [Samuel Lebeau, Tobie Langel]
* Make Element # absolutize and Element # relativize always return element. Closes # 10983. [kangax]
* Add deprecation extension. [Tobie Langel]

Source: https://habr.com/ru/post/41307/


All Articles