Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

root/spinoffs/prototype/tags/rel_1-6-0/CHANGELOG

Revision 8079, 49.8 kB (checked in by sam, 8 months ago)

prototype: Version bump

Line 
1 *1.6.0* (November 6, 2007)
2
3 * Fix Class#addMethods for "toString" and "valueOf" methods in Internet Explorer.  Closes #9901.  [sam]
4
5 * Exclude Opera from using the sourceIndex approach in Element#descendantOf. [Tobie Langel, Andrew Dupont]
6
7 * Ensure Element#hasClassName always returns a boolean. Closes #10075. [ronnylovtangen, Tobie Langel]
8
9 * Ensure selectors of the form "[href]" (attribute token with no preceding tag name) work properly. Closes #8870. [chao, kangax, Andrew Dupont]
10
11 * Performance optimizations for Element#descendantOf. Costliness should no longer be dependent on the difference in depth between the parent and the child. [Andrew Dupont]
12
13 * Apply the workaround for the Firefox "blinking element" opacity=1 bug only to Firefox 1.5.  [Thomas Fuchs]
14
15 * Add event.stopped, a boolean that is set to `true` when Event#stop is called. [Andrew Dupont, sam]
16
17 * Reset the browser's dimensions to their original settings after running the DOM viewport tests.  [sam]
18
19 * Fix the test runner for Firefox in Leopard.  [sam]
20
21 * Use String#include wherever possible.
22
23 * In IE, allow opacity to be set on elements not yet attached to the document. Closes #9904. [Thomas Fuchs, dcpedit, Tobie Langel]
24
25 * Avoid the try..catch block in Ajax.Response#_getResponseJSON unless required. [Tobie Langel]
26
27 * Add more tests to Element.update. Closes #9327. [Tobie Langel]
28
29 * Make the Ajax.Response#headerJSON property correctly decode unicode characters. Closes #9285. [Marius Feraru, Tobie Langel]
30
31 * Make sure Event and Event.extend are defined before wrapping events and calling their handler. Prevents a known Firefox bug from throwing errors on page load/unload (cf.: https://bugzilla.mozilla.org/show_bug.cgi?id=361271). Closes #5393, #9421. [staaky, John Resig, sam, Tobie Langel]
32
33 * Minor cosmetic changes to the display of unit tests in terminal. [Tobie Langel]
34
35 * Make submitting forms work in Opera < 9.1. Closes #9917, #9463, #8260. [kangax]
36
37 * Fix template evaluation with empty replacements.  Closes #9692.  [Ryan McGeary]
38
39 * Hash#toTemplateReplacements is an alias for Hash#toObject so you can once again pass hashes to Template#evaluate and String#interpolate.  [sam]
40
41 * Fix Event#is(Left|Middle|Right)Click in IE.  Closes #7520 (again).  [Mislav Marohnić]
42
43 *1.6.0_rc1* (October 16, 2007)
44
45 * Ensure Event.* generic methods work in IE, even when the event is not extended. [Viktor Kojouharov, Andrew Dupont]
46
47 * Don't translate "keypress" events into "keydown" events.  [sam]
48   Note: "keypress" is broken in Safari <= 2.x, but Event#stop has no effect on "keydown" events.
49
50 * Changed Element#makeClipping to remember the original overflow value, even if it's a non-inline style. [Andrew Dupont]
51
52 * Cross-browser Event#isLeftClick with the addition of is(Middle|Right)Click.  Closes #7520.  [Christophe Porteneuve, Richard Quadling, Mislav Marohnić]
53
54 * Changed Selector to use the non-XPath approach for Safari 3 because of bugs in its version of document.evaluate. [Andrew Dupont]
55
56 * Changed the Selector regex that tests whether the selector can be expressed in XPath; added :checked, since XPath can't detect all scenarios in which an <input> is checked. Fixes #9776. [StelardActek, kangax, Andrew Dupont]
57
58 * Changed Selector pattern match so that descendant combinators after pseudoclass tokens are properly handled. Fixes #9696. [wiktor, kangax, Andrew Dupont]
59
60 * Make sure $w always returns an array. [Andrew Dupont, Tobie Langel]
61
62 * Add more tests to Hash. [Mislav Marohnić]
63
64 * Performance enhancements to $A. Closes #9464. [Samuel Lebeau]
65
66 * Make Function#argumentNames work with named functions. Closes #9826. [Samuel Lebeau]
67
68 * Add Object.isHash. [Tobie Langel]
69
70 * Performance improvements to String#times. [Martin Ström]
71
72 * Make Ajax.Response#getHeaderJSON and Ajax.Response#getResponseJSON pseudo private instance methods. [Tobie Langel]
73
74 * Make ObjectRange use the new Class.create syntax. [Mislav Marohnić]
75
76 * Fix a failing ClassCreate test case in IE. [Tobie Langel]
77
78 * Complete rewrite of the Hash class.
79
80   !! BACKWARDS COMPATIBILITY CHANGE !! This new version of Hash is NOT backwards compatible with the former Hash class.
81  
82   Properties are now hidden away in an private store to prevent the risk of collision with Hash's instance and mixed-in methods.
83   This implies that properties of the hash can no longer be set, accessed or deleted directly: use the new Hash#get(key), Hash#set(key, value) and Hash#unset(key) instance methods instead.
84  
85   - Make $H(object) equivalent to new Hash(object). Both now return a new (cloned) instance of Hash in all circumstances.
86   - Make Hash#merge non-destructive.
87  
88   - Add Hash#update (a destructive version of Hash#merge).
89   - Add Hash#clone (returns a new, cloned instance of Hash).
90   - Add Hash#toObject (returns a clone of the contained object).
91   - Add Hash#get(key) (returns the value of the specified property).
92   - Add Hash#set(key, value) (sets the value of the given property. returns the value).
93   - Add Hash#unset(key) (deletes the specified property and returns its value).
94   - Add Hash.from as a alias to $H for consistency with Array.from.
95   - Add Object.toQueryString.
96
97   - Deprecate Hash.toQueryString (use Object.toQueryString or the instance method Hash#toQueryString instead).
98
99   - Remove Hash#remove (use Hash#unset instead).
100   - Remove Hash.toJSON (use Object.toJSON or the instance method Hash#toJSON instead). [sam, Tobie Langel]
101
102 * Element#wrap now returns the wrapper instead of the element being wrapped.  [sam]
103
104 * Namespace all custom event names to avoid conflicts with native DOM events.  [sam]
105   - All custom event names MUST include a namespace.  Prefix custom event names for observe, stopObserving, and fire with the namespace followed by a colon.  E.g. document.fire("widget:activated")
106   - The "contentloaded" event is now "dom:loaded".
107   - The Event.DOMEvents array is no longer present.  If an event name does not include a namespace, the event is treated as a native event.
108
109 * Clean up the new class API.  [sam, Tobie Langel]
110   - Add Class#addMethods for adding instance methods to classes. 
111   - Remove Class.extend and Class.mixin. 
112   - Class.create now takes a variable number of arguments: if the first argument is a class, the newly created class inherits from that class; all other arguments are treated as successive calls to addMethods.
113
114 * Fix contentloaded event initialization in IE.  Closes #9457, #9488, #9707.  [Mislav Marohnić]
115
116 * Deprecate document.getElementsByClassName and Element#getElementsByClassName since native versions return a NodeList and we can only return an Array.  Please use $$ or Element#select instead.  [sam]
117   For more information see https://bugzilla.mozilla.org/show_bug.cgi?id=390411
118
119 * Fix missing "var" in selector.js.  Closes #9761.  [Tobie Langel]
120
121 * Date#toJSON now returns times in UTC for better compatibility with json.js.  Closes #9332.  [Tobie Langel]
122
123 * Ensure document._getElementsByXPath extends the elements it returns; fixes $$ not returning extended elements in Opera 9.2.  Closes #8843.  [jdalton]
124
125 * Update Prototype.Browser.MobileSafari for iPod touch compatibility.  [sam]
126
127 * Add tests for Object.extend and Object.clone.  [Tobie Langel]
128
129 * Add a test for Form.Observer.  [Christoph Sturm]
130
131 * Make sure setting opacity works on elements that have "no layout" in IE.  [Thomas Fuchs]
132
133 * Simplify Class.create by establishing a prototype chain when subclassing.  Closes #9342.  [Ben Newman]
134
135 * Fix Ajax.PeriodicalUpdater for compatibility with Ajax.Response.  Closes #9321.  [kampers]
136
137 * Ensure that classes always have an initialize method.  [Mislav Marohnić]
138
139 * Update Template, Selector, Ajax.*, and ObjectRange classes to use the new class system.  [Mislav Marohnić]
140
141 * Change Abstract.TimedObserver to subclass PeriodicalExecuter and tweak its subclasses to use new inheritance functionality.  TimedObserver can now be stopped the same way as PeriodicalExecuter.  Closes #8589.  [Mislav Marohnić]
142
143 * Fix Class.mixin to extend the class's prototype.  [Mislav Marohnić]
144
145 * Fix superclass method call breakage from [7337].  [Mislav Marohnić, sam]
146
147 * Change Class.extend to allow for superclass method resolution and remove Class.inherit.  Closes #9274.  [Samuel Lebeau]
148
149 * Event handlers are now bound to the observed element, not the event's target element.  [Dan Webb]
150
151 * Define Node constants conditionally after checking for Node.ELEMENT_NODE presence.  Add unit test to check the values of all constants.  Closes #7625.  [Mislav Marohnić]
152
153 * Make sure Enumerable#include doesn't do type comparision.  [Mislav Marohnić]
154
155 * Add contextmenu to Event.DOMEvents.  [Thomas Fuchs]
156
157 *1.6.0_rc0* (August 15, 2007)
158
159 * Fix readAttribute-related failure in form.html in IE.  [sam, Andrew Dupont]
160
161 * Fix failing dom.html and selector.html tests in IE.  [Tobie Langel, Andrew Dupont]
162
163 * Make sure the WebKit redefinition of Element#cumulativeOffset uses Element._returnOffset.  Closes #9245.  [mdaines]
164
165 * Make sure Element#observe and Element#stopObserving are always chainable.  [sam]
166
167 * Event.fire/Element#fire now returns the newly-fired event instead of the event's target element.  [sam]
168
169 * Restrict Event.DOMEvents to include only events that can be supported in all browsers.  [sam]
170
171 * Fix a failing test in base.html in Safari 2.  [Tobie Langel]
172
173 * Fix Element#positionedOffset and Element#getOffsetParent for static elements on IE.  [Thomas Fuchs]
174
175 * Make sure event handlers and their wrappers are removed from the cache by Event.stopObserving.  [sam, Severin Heiniger]
176
177 * Add line numbers to failures when unit testing in Firefox.  Closes #9231.  [John Resig]
178
179 * Fix Function#argumentNames for Opera and IE.  [Thomas Fuchs]
180
181 * Add Object.isString, Object.isNumber, and Object.isUndefined, and clean up the source to make use of Object.isXXX where possible.  [sam]
182
183 * Add the document.viewport object for querying dimensions and scroll offsets of the browser viewport.  [Andrew Dupont, Thomas Fuchs, sam]
184   Example:
185     document.viewport.getDimensions()     // { width: 1149, height: 923 }
186     document.viewport.getWidth()          // 1149
187     document.viewport.getHeight()         // 923
188     document.viewport.getScrollOffsets()  // { left: 0, top: 1592 }
189
190 * Add support for brackets in quoted attribute value selectors.  Closes #9157.  [Ken Snyder]
191
192 * Add some missing semicolons to the source tree.  Closes #9140.  [jdalton]
193
194 * Fix event extensions and custom events firing for Safari 2.0.  [Thomas Fuchs]
195
196 * Add RegExp.escape for escaping regular expression strings.  Closes #9094.  [Ken Snyder]
197
198 * Make the eventName and handler arguments to Event.stopObserving optional.  If no handler is specified, all handlers for the given event are unregistered.  If no event name is specified, all observed events on the element are unregistered.  [sam]
199
200 * Add cross-support for the DOMContentLoaded event through a Prototype custom event on document called "contentloaded".  The DOMContentLoaded event fires before window.load, when the entire HTML document, but not necessarily its images, stylesheets or other assets, has loaded.  Based on [6596].  [sam, Mislav Marohnić]
201   Example:
202     document.observe("contentloaded", function() {
203       $$("a").invoke("identify"); // give all <a> tags an ID
204     });
205
206 * Add Event.fire and Element.Methods.fire for firing custom events.  Prototype custom events piggyback on a real DOM event ("ondataavailable"), so they bubble and cancel.  You can fire custom events from any element, or fire global events on the document object.  Observe custom events just as you'd observe a regular DOM event.  [sam, Seth Dillingham]
207
208 * Extend the event object with methods from Event.Methods and normalize it in IE.  [sam, Mislav Marohnić]
209
210 * Remove support for observing the capturing phase of DOM events, since we can't support it in all browsers.  [sam]
211
212 * Add Ajax.Response object which supports the following methods: responseJSON, headerJSON, getHeader, getAllHeaders and handles browser discrepancies in the other response methods. Add sanitizeJSON, evalJS and evalJSON to Ajax.Request. Closes #8122, #8006, #7295. [Tobie Langel]
213
214 * Add an isRunningFromRake property to unit tests. [Tobie Langel]
215
216 * Add support for Opera browser in jstest.rb. [Tobie Langel]
217
218 * Inheritance branch merged to trunk; robust inheritance support for Class.create. Closes #5459. [Dean Edwards, Alex Arnell, Andrew Dupont, Mislav Mahronic]
219  - To access a method's superclass method, add "$super" as the first argument. (The naming is significant.) Works like Function#wrap.
220  - Class.create now takes two optional arguments. The first is an existing class to subclass; the second is an object literal defining the instance properties/methods. Either can be omitted. Backwards-compatible with old Class.create.
221  - Added Class.extend for dynamically adding methods to existing classes (while preserving inheritance chain). Can also be used for mixins.
222  - The 'constructor' property of a class instance always points back to the proper class. Class objects themselves have two special properties: 'superclass' and 'subclasses' (which default to 'null' and '[]', respectively). Allows for powerful introspection.
223  - Added Object.isFunction [sam]
224  
225 * Add Function#argumentNames, which returns an ordered array of the function's named arguments.  [sam]
226
227 * Prevent a crash in Safari 1.3 on String#stripScripts and String#extractScripts. Closes #8332. [grant, Tobie Langel]
228
229 * Add Prototype.Browser.MobileSafari which evaluates to true on the iPhone's browser.  [sam]
230
231 * Optimize Selector#match and Element#match for simple selectors.  Closes #9082.  [Andrew Dupont]
232
233 * Remove the dependency on Element.ClassNames from Element#addClassName/removeClassName/toggleClassName, and deprecate Element.ClassNames. Closes #9073. [Tobie Langel]
234
235 * Make Element#wrap accept a second argument for setting attributes on the wrapper. Allow wrapping elements which are not part of the document. Closes #9071. [Tobie Langel]
236
237 * Improvements for Element#replace, Element#update and Element#insert.  Closes #7429, #9060.  [Tobie Langel]
238   - Element#replace/update/insert uses the argument's toElement or toHTML method if present (toElement has precedence if both are present).
239   - Element#replace and Element#update now also accept DOM elements.
240   - Element#replace better handles table-related elements in IE and Opera.
241  
242 * Add Object.isArray and Object.isElement (returns true if the object is a DOM node of type 1). [Tobie Langel]
243
244 * Add Object.toHTML (uses the object's toHTML method if present or else passes the object to String.interpret). [Tobie Langel]
245
246 * Make Element#setStyle accept a string argument of CSS rules. Deprecate uncamelized style property names when setting styles using an object (for performance reasons).  Closes #9059.  [Tobie Langel]
247   Examples:
248     $('id').setStyle('font-size: 12px; float: left; opacity: 0.5');
249     $('id').setStyle({fontSize: '12px', cssFloat: 'left', opacity: 0.5});
250
251   !! BACKWARDS COMPATIBILITY CHANGE !!
252  
253   If you have code that looks like this:
254     $('id').setStyle({'font-size': '12px'});
255   You need to replace it with either of the following:
256     $('id').setStyle({fontSize: '12px'});
257     $('id').setStyle('font-size: 12px;');
258
259 * Add Element#identify, which returns the element's ID if it exists, or sets and returns a unique, auto-generated ID (of the form "anonymous_element_" + auto-incremented digit) otherwise.  Use this when you need to ensure an element has an ID.  Closes #9012.  [Jeff Watkins, sam, Tobie Langel]
260
261 * Make Element#readAttribute work for cloned elements in IE. Closes #8481. [chem, Tobie Langel]
262
263 * Template enhancements.  Closes #8166.  [Christophe Porteneuve]
264   - Added String#interpolate as a shortcut for new Template(...).evaluate(...).
265   - If you pass String#interpolate or Template#evaluate an object with a toTemplateReplacements() method, the return value of that method will be used as the replacement object.
266   - You can now substitute properties of template replacement values in template strings, using dot or bracket notation (or both).  Example:
267     "#{name.last}, #{name.first[0]}. (#{location})".interpolate({
268       name: { first: "Christophe", last: "Porteneuve" }, location: "Paris"
269     }) // "Porteneuve, C. (Paris)"
270
271 * Extended grep semantics.  The first argument to Enumerable#grep is now a "filter" (an object with a match() method) so you can now e.g. filter an array of DOM nodes by CSS selector.  RegExp#match is now an alias to RegExp#test, so grep can still be used to filter an array of strings with a regular expression.  Closes #7596.  [Christophe Porteneuve, sam]
272
273 * Make String#scan explicitly return a string. This prevents possible issues with methods expecting input data that is typeof == 'string'. Closes #6350. [AndrewRev, Tobie Langel]
274
275 * Add Array#intersect for set intersection. Returns a new array containing all items common to the array and the argument, with duplicates removed (clone of the Ruby & method).   [Thomas Fuchs]
276   Example:
277     [1,1,3,5].intersect([1,2,3]) -> [1,3]
278
279 * Rename Element#getElementsBySelector to Element#select and add alias for Element#getElementsBySelector.  [Thomas Fuchs]
280
281 * Add Element#adjacent as a shortcut to selecting all adjacent nodes (and their children) that match a CSS selector.  [Thomas Fuchs]
282
283 * Enhance the Enumerable and Array APIs to more closely match those of JavaScript 1.6 as implemented in Firefox 1.5.  Closes #6650, #8409.  [Mislav Marohnić, Sylvain Zimmer]
284   - Add Array#lastIndexOf, and change Array#indexOf not to overwrite the native method.
285   - Make Enumerable use Array.prototype.forEach instead of _each when possible (slight speed increase).
286   - Add "filter", "entries", "every", and "some" Array aliases.
287   - All Enumerable methods now have an additional parameter, "context", which, if present, specifies the object to which the iterators' "this" is bound.
288   - Function#bind and #curry now return the receiving function if the binding object is undefined.
289
290 * Temporary workaround for Prototype.BrowserFeatures.SpecificElementExtensions incorrectly evaluating to true on iPhone. (needs further investigation)  [sam]
291
292 * The action for Form#request defaults to the current URL if the "action" attribute is empty. (This is what most of the major browsers do.) Fixes #8483. [Tomas, Mislav Marohnić]
293
294 * In form serialization, change the way submit buttons are handled. Previously all submit buttons were serialized; now Prototype serializes only the first one. Change Form#serialize and Form.serializeElements to accept a params hash. With the "hash: false" option, a serialized string is returned instead of the hash data object. With the "submit: 'foo'" option, only the submit button with the name "foo" is serialized.  References #5031.  [Mislav Marohnić]
295   Examples:
296     $('form').serialize({ submit: 'delete' })
297     $('form').serialize({ hash: false }) //-> equivalent to $('form').serialize()
298
299 * Form#findFirstElement respects HTML tabindexes.  Closes #7595.  [Christophe Porteneuve]
300
301 * Added Form.Element#setValue method for setting values on various form controls. Checkboxes and radio buttons respond to a boolean and multiple select boxes expect an array of values.  Closes #5902.  [Jonathan Viney, Mislav Marohnić]
302   Examples:
303     $('text_input').setValue('hello world!')
304     $('remember_me').setValue(true)
305     $('attend_classes').setValue(['cheese rolling', 'evil chemistry'])
306
307 * Make document.getElementsByClassName match a subset of the WHATWG Web Applications 1.0 specification which was adopted in Firefox 3 (http://www.whatwg.org/specs/web-apps/current-work/#getelementsbyclassname). It now supports multiple class names given as a whitespace-separated list in a string. Array argument is not supported. The method will only return the nodes that match all the class names. In browsers that implement the method natively it will not be overwritten.  Closes #8401.  [Mislav Marohnić]
308   Example:
309     document.getElementsByClassName('foo bar')
310
311 * Fix a Safari rendering issue when floating elements could temporarily disappear when opacity was set to 1.  Closes #7063.  References #3044, #3813, #6706.  [Thomas Fuchs, davidjrice]
312
313 * Prevent a crash in Safari when calling String#evalJSON(true) on very large strings. Add String#isJSON.  Closes #7834.  [Tobie Langel]
314
315 * Prevent a crash in Safari 1.3 on String#stripScripts and String#extractScripts.  Closes #8332.  [grant, Tobie Langel]
316
317 * Allow JSON data to contain line breaks.  Closes #8271.  [pijyster, Tobie Langel]
318
319 * Add Hash.prototype.index which returns the first found property that has a specific value.  Closes #8528.  [Thomas Fuchs, slusarz, Mislav Marohnić]
320   Examples:
321     var hash = $H({a:1,b:'2'});
322     hash.index(1)   // -> 'a'
323     hash.index('1') // -> undefined
324
325 * Ensure HTMLElement exists before creating Element.extend.  [Tobie Langel]
326
327 * Add Number.prototype.round/ceil/floor/abs as an aliases to the respective methods in Math. Refactor to seperate number extensions from base.js.  [Thomas Fuchs]
328
329 * Make Element#absolutize and Element#relativize properly use Element#getStyle.  Closes #8580.  [Christophe Porteneuve]
330
331 * Test library fixes: make rake dist work on Windows, only teardown if a browser is supported.  Closes #8463, #8498.  [Mislav Marohnić, grant]
332
333 * Change Element.insert syntax to allow multiple positions.  [Thomas Fuchs]
334   Examples:
335     Element.insert('foo', {top:'bar', bottom:'baz'});
336     $('foo').insert({after: new Element('p').update('bar')});
337     Element.insert('foo', new Element('p').update('bar')); // defaults to bottom
338     Element.insert('foo', 'bar'); // defaults to bottom
339
340 * String.prototype.truncate now explicitly converts its return value into a string if no truncation takes place. This prevents possible issues with methods expecting input data that is typeof == 'string'.  [Thomas Fuchs, Tobie Langel, Sam Stephenson]
341
342 * Event.findElement behaves as expected when the element passed matches the given selector.  Closes #8395.  [Mislav Marohnić, Tobie Langel]
343
344 * Element.setOpacity now calls removeAttribute on the filter style on IE if no more filters remain, which makes Cleartype work properly.  Closes #8376.  [alexdemi, Thomas Fuchs]
345
346 * Event.findElement now uses Element#up (and as a result can take a CSS selector instead of just a tag name).  [Tobie Langel]
347
348 * Minor cleanup of the position methods  [sam]
349
350 * Fix Element#clonePosition to call viewportOffset.  Closes #8372.  [graemenelson, Christophe Porteneuve]
351
352 * Prevent an error being thrown by $$ when #id does not exist in $$("div #id").  Closes #8325.  [Tobie Langel, ecke]
353
354 * Make Prototype.ScriptFragment behave when including Prototype inline.  [Christophe Porteneuve]
355
356 * Deprecate Position (kept for backwards compatibility). Add Element#cumulativeOffset, Element#positionedOffset, Element#absolutize, Element#relativize, Element#cumulativeScrollOffset, Element#getOffsetParent, Element#viewportOffset and Element#clonePosition. [Christophe Porteneuve]
357
358 * Make Element#update and Element#insert work for SELECT tags in IE and Opera. [Tobie Langel]
359
360 * Make Element#insert and Element#update better handle TABLE related elements in IE and Opera. Closes #7776, #8040, #7550, #7776, #7938. [Tobie Langel]
361
362 * Make Element#readAttribute('title') work in Opera. [Tobie Langel]
363
364 * Make Element#replace work with form elements in Firefox and Safari. Closes #8010, #7989. [dsl239, Tobie Langel]
365
366 * Add Element#wrap which wraps the element inside a new one. Closes #5732. [P. Vande, Tobie Langel]
367
368 * Make Element into a constructor: new Element(tagName, attributes). Add Element#writeAttribute which accepts a hash of attributes or a name/value pair. Closes #7476. [Mislav Marohnić, haraldmartin, Tobie Langel]
369
370 * Insertion overhaul: Add Element.insert(content[, position = 'bottom']). Deprecate Insertion (kept for backwards compatibility). Make Ajax.Updater option.insertion accept both Insertion.Top or the now preferred 'top'. Closes #7907. [Tobie Langel]
371
372 * Refactor Element.extend and eliminate Element.extend.cache.  [sam]
373
374 * Add Function#curry, Function#delay, Function#defer, and Function#wrap.  Closes #8134.  [Andrew Dupont, Tobie Langel, sam]
375
376 *1.5.1* (May 1, 2007)
377
378 * Don't duplicate the event argument in Function#bindAsEventListener.  Closes #6497.  [wiktor]
379
380 * Fix Selector :not-clause chaining.  [Andrew Dupont]
381
382 *1.5.1_rc4* (April 27, 2007)
383
384 * Fix $F breakage from [6598].  [sam]
385
386 * Set window.$continue to an Error with a helpful message for anyone who may still be using "throw $continue".  [sam]
387
388 * Fix jstest.rb IE support so you don't have to close the IE window after each test (yay!).  Closes #8207.  [Ryan Schuft]
389
390 * Fix jstest.rb Konqueror support.  Closes #7140.  [Christophe Porteneuve]
391
392 * Fix regression in which no-argument calls to Element.addMethods() would not add the methods defined in Form.Methods and Form.Element.Methods.  Closes #8206.  [Tobie Langel, fwittekind]
393
394 * Fix Element#readAttribute to work with the 'type' attribute in IE.  Closes #8160.  [Tobie Langel, Wiktor Ihárosi]
395
396 *1.5.1_rc3* (April 24, 2007)
397
398 * Add Element#childElements as an alias for Element#immediateDescendants.  [Tobie Langel]
399
400 * Optimize DOM navigation methods (Element#up, Element#down, Element#previous, Element#next) for no-argument calls.  Closes #7848.  [haraldmartin, sam]
401
402 * Add Element#firstDescendant to retrieve the first non-text child node of an element.  [sam]
403
404 * Element.addMethods should add methods to Element as well as Element.Methods.  Closes #7888.  [Andrew Dupont]
405
406 * Add support for per-request onCreate callbacks to Ajax.Request.  Closes #8011.  [Andrew Dupont]
407
408 * Don't call evalResponse() when an Ajax response has no Content-type header.  Closes #7827.  [Tobie Langel]
409
410 * Automatically strip security delimiter comments from JSON strings before evaling them.  The default delimiter is '/*-secure- ... */' or you can specify your own with the Prototype.JSONFilter regular expression.  If you wrap your JSON response bodies in this delimiter on the server side, rogue external sites can't hijack potentially sensitive data via <script> tags.  Closes #7910.  [Tobie Langel]
411   For more details on potential security problems, see: http://www.fortifysoftware.com/servlet/downloads/public/JavaScript_Hijacking.pdf
412
413 * Add extra spacing so Array#toJSON and Hash#toJSON generate YAML-loadable JSON.  Closes #7883.  [Andrew Dupont]
414
415 * Fix Form.request for forms containing an input element with name="action".  Closes #8063.  [Thomas Fuchs, Mislav Marohnić]
416
417 * Make Event.element extend the returned element.  Closes #7870.  [Thomas Fuchs]
418
419 * Prevent a crash on Safari on String.prototype.stripScripts and extractScripts with large <script> tags.  [Thomas Fuchs]
420
421 * Prevent linefeed normalisation in String.prototype.escapeHTML and unescapeHTML on IE for consistency with other browsers. Speed optimizations for Safari and IE.  [Thomas Fuchs]
422
423 * Make Hash.toQueryString serialize undefined values. Ensure consistency with String.prototype.toQueryParams.  Closes #7806.  [Mislav Marohnić]
424   Examples:
425     $H({a:'b',c:undefined}).toQueryString()      -> 'a=b&c'
426     $H({a:'b',c:null}).toQueryString()           -> 'a=b&c='
427     $H('a=b&c'.toQueryParams()).toQueryString()  -> 'a=b&c'
428     $H('a=b&c='.toQueryParams()).toQueryString() -> 'a=b&c='
429    
430 * Fix issues with Selector an+b logic, :not support, attribute selector double quotes, plus performance improvements.  Closes #7873, #7901.  [Andrew Dupont]
431
432 * Fix Form.disable to work again on non-form elements.  Closes #6887.  [Mislav Marohnić]
433
434 * Fix an issue with String.prototype.endsWith.  Closes #7822.  [altblue]
435
436 *1.5.1_rc2* (March 12, 2007)
437
438 * Add a tab character via innerHTML to the selector whitespace test.  [Christophe Porteneuve]
439
440 * Add an attribution to YUI-Ext's DomQuery in selector.js.
441
442 * Make Element.extend work on IE for Nodes with the same ID that where discarded.  Closes #7497.  [Mislav Marohnić, Thomas Fuchs]
443
444 * Make Selector correctly extend the first element it returns on IE.  [Thomas Fuchs]
445
446 * Prevent a crash in Safari when using $A() on NodeList objects that contain text nodes.  [Thomas Fuchs]
447
448 * Fix Element.Methods.descendants() to properly extend elements on IE.  [Thomas Fuchs]
449
450 *1.5.1_rc1* (March 9, 2007)
451
452 * Fix readAttribute for IE7. [Andrew Dupont]
453
454 *1.5.1_rc0* (March 8, 2007)
455
456 * Merge the selector branch into trunk, bringing vast performance improvements, bug fixes, and near-complete CSS3 compliance to $$ and Selector.  Closes #7568.  [Andrew Dupont]
457   Selector speed test: http://andrewdupont.net/test/double-dollar/
458
459 * Add support for JSON encoding and decoding.  Closes #7427.  [Tobie Langel]
460
461 * Fix double escaping of query parameters in Hash.prototype.toQueryString, and prevent Safari from iterating over shadowed properties when creating hashes.  Closes #7421.  [Tobie Langel, Mislav Marohnić]
462
463 * Fix simulated attribute reading for IE for "href", "src" and boolean attributes.  [Mislav Marohnić, Thomas Fuchs]
464
465 * Form.Element.disable() will now call blur(), removed blur() call from Form.Element.enable().  Closes #6034.  [tdd]
466
467 * Optimize document.getElementsByClassName and finalize DOM performance optimization refactoring.  Closes #6696.  [Mislav Marohnić]
468
469 * Fix an issue with serializing empty array inputs.  Closes #7516.  [stakadush, Mislav Marohnić]
470
471 * Add optional third parameter "camelized" to Element.setStyle, for optimized performance if style names are known to be camelCased.  [Thomas Fuchs]
472
473 * Fix a bug in the simulated hasAttribute for IE due to getAttributeNode sometimes returning null.  [sam]
474
475 * Optimize Element.getStyle and add new Element.getOpacity method. Special case IE and Opera getStyle methods.  Closes #7648.  [Tobie Langel, Thomas Fuchs]
476
477 * Optimize Element.setStyle and add new Element.setOpacity method, special case IE and Gecko opacity methods.  Closes #7585.  [savetheclocktower]
478
479 * Add unified Browser detection by providing Prototype.Browser.(IE|Gecko|WebKit|Opera) booleans.  Closes #6800.  [savetheclocktower]
480
481 * Add String.prototype.empty and String.prototype.blank (tests if empty or whitespace-only).  Closes #7016.  [Jonathan Viney, Thomas Fuchs]
482
483 * Update README to reflect new URLs, update LICENSE copyright years.  Closes #7426.  [Tobie Langel]
484
485 * Array.prototype.uniq optimization.  Closes #7417.  [Christophe Porteneuve]
486
487 * String.prototype.endsWith should not fail on multiple occurrences.  Closes #7416.  [Christophe Porteneuve]
488
489 * Add Form.Methods.request as a convenience method for serializing and submitting a form via Ajax.Request to the URL in the form's action attribute.  [sam]
490
491   Options passed to request() are intelligently merged with the underlying Ajax.Request options:
492   - If the form has a method attribute, its value is used for the Ajax.Request method option.  If a method option is passed to request(), it takes precedence over the form's method attribute.  If neither is specified, method defaults to "post".
493   - Key/value pairs specified in the parameters option (either as a query string or as a hash) will be merged with (and take precedence over) the serialized form parameters.
494
495 * Fix $(form).serialize() in Safari and add support for extending specific tags to Element.addMethods.  Closes #7358.  [Andrew Dupont]
496
497 * Add String.prototype.startsWith, String.prototype.endsWith, and String.prototype.include.  Closes #7075.  [Tobie Langel]
498
499 * Improve performance of String.prototype.escapeHTML by using a cached div and text node.  Closes #6937.  [altblue]
500
501 * Make setStyle() with opacity: 0 in Internet Explorer work correctly.  [Thomas Fuchs]
502
503 * Form.Element.activate shouldn't raise an exception when the form or field is hidden.  [sam]
504
505 * Remove support for "throw $continue" in Enumerable.  Use "return" instead.  [sam]
506
507 * Update HEADER to reflect new URL.  [sam]
508
509 *1.5.0* (January 18, 2007)
510
511 * Add test to ensure Content-type header is set for simulated verbs.  [sam]
512
513 * Fix Content-Type header for HTTP methods simulated with POST not defaulting to application/x-www-form-urlencoded.  [Thomas Fuchs]
514
515 * Simplify form serialization and add support for fields with the same name as Hash methods.  Closes #6649.  [Mislav Marohnić]
516
517 * Fix attribute selectors for IE.  Closes #5170.  [Tobie Langel, Andrew Dupont]
518
519 * A slew of dom.js improvements.  Closes #4217, #6589, #7001.  [Tobie]
520   - Fix Element.getDimensions() for hidden elements, make Element.getHeight() use .getDimensions()
521   - Add Element.getWidth()
522   - Make Element.replace() call .toString() on the html argument (alike .update())
523   - Fix an issue with Element.get/setStyle() and Safari with 'float'
524   - Add a bunch of missing unit tests
525
526 * Fix an issue with Element.setStyle({opacity:''}) setting the opacity to 0 instead of removing the set inline opacity style.  [Thomas Fuchs]
527
528 * Ensure Ajax.Request's evalResponse is called before onComplete so that onComplete can reference any elements created during the response.  Closes #6727.  [jonathan]
529
530 * Ensure the WEBrick test runner sets the correct Content-Type for tests and fixtures. [sam]
531
532 * Form.serialize once again works with non-form elements.  This is a temporary change to prevent the Rails link_to_remote regression described in #6898.  Prototype 1.5.1 will introduce an API for working with collections of arbitrary form elements.  References #6887.  Closes #6898.  [sam]
533
534 * Make selectors match forms that have an element with name="id" correctly, fixes #5759 [mislav]
535
536 * Remove support for HTTP authorization in Ajax calls introduced with #6366.  Closes #6638 [jmecham]
537
538 * Add Enumerable.size() to count elements in an enumerable and the corresponding Array.size() method, fixes #6710 [ZenCocoon]
539
540 * Add String.succ() method to allow for String ranges, fixes #6037 [Cory Hudson, mislav]
541   Examples:
542     'abcd'.succ();                                   -> 'abce'
543     $R('a','d').map(function(char){ return char; }); -> ['a','b','c','d']
544
545 * Make Element.scrollTo() correctly consider offsets of parent DOM nodes, fixes #6625 [ohader, savetheclocktower]
546
547 * Fix Enumerable.inGroupsOf() to correctly work with fill values that evaluate to false, fixes #6782 [hawk]
548
549 * Remove/cleanup redundant $() calls in dom.js, fixes #6817 [Tobie]
550
551 * Don't cache files in automatic unit tests, fixes #6218 [voidlock]
552
553 * Add $w() to easily create arrays from strings like Ruby's %w, fixes #5682 [glazedginger, brendon.aaron]
554
555 * Add Element.toggleClassName() to toggle CSS classes on elements, fixes #6759 [Tobie]
556
557 * Make Form.getInputs always return an array for consistency, fixes #6475 [Justin Gehtland, savetheclocktower]
558
559 * Make TimedObserver work correctly for SELECT MULTIPLE elements, fixes #6593 [clemos, tdd]
560
561 * Fix Template.prototype.evaluate to correctly interpret 0 and false values, add String.interpret() for safely interpreting and converting values to strings, fixes #6675 [hawk]
562
563 * Make Element.getStyle() work with camelCased argument, fixes #6686 [Tobie]
564
565 * Fix a redundant check in Array.prototype.compact, fixes #4739 [wlodarcz, mislav]
566
567 * Fix $() to correctly pass back the results of document.getElementById(), notably returning "null" on elements not found, fixes #6582 [adsmart]
568
569 * Change/add assertNull, assertUndefined, assertNullOrUndefined and not-* variants in unittest.js, fixes #6582 [adsmart]
570
571 * Cleanup String.prototype.camelize, fix an issue with String.prototype.underscore, fixes #4714, #6685 [Tobie, Thomas Fuchs]
572
573 * Add String.prototype.capitalize, which returns a string with the first character in upper case, fixes #6666 [Tobie]
574
575 * Make Element.getStyle() and Element.setStyle() handle the CSS 'opacity' property transparently in IE, fixes #6093 [brandon.aaron, Tobie]
576
577 * Fix handling of CSS 'float' property for Element.getStyle() and Element.setStyle(), fixes #4160 [Thomas Fuchs, ericf]
578
579 * Fix that onComplete would be called twice with synchronous Ajax requests on Safari (provides units tests for #5756) [Thomas Fuchs]
580
581 * Fix Form.Field.activate to not select text on buttons in IE, fixes #2653 [sutch, mislav, Thomas Fuchs]
582
583 * Fix String.unescapeHTML() on Firefox for strings that are longer than 2048 bytes, fixes #5789 [Paul Moers, Thomas Fuchs]
584
585 * Redefine Array.prototype.concat for Opera, as the native implemenation doesn't work correctly [Thomas Fuchs]
586
587 * Add unit tests for Function.prototype.bind() [Thomas Fuchs]
588
589 * Add String.prototype.underscore and String.prototype.dasherize [Thomas Fuchs]
590   Examples:
591     'Hello_World'.dasherize()                    -> 'Hello-World'
592     'borderBottomWidth'.underscore()             -> 'border_bottom_width'
593     'borderBottomWidth'.underscore().dasherize() -> 'border-bottom-width'
594
595 *1.5.0_rc2* (November 11, 2006)
596
597 * Ensure that existing DOM properties take precedence over extended element methods in all browsers.  Closes #5115.  [Sean Kleinjung, sam]
598
599 * Add Element.Methods.readAttribute as a simple wrapper around getAttribute (which isn't a "real" function and doesn't have .apply or .call in Safari and IE).  Useful in conjunction with Enumerable.invoke for extracting the values of a custom attribute from a collection of elements.  [sam]
600   Example:
601     <div id="widgets">
602       <div class="widget" widget_id="7">...</div>
603       <div class="widget" widget_id="8">...</div>
604       <div class="widget" widget_id="9">...</div>
605     </div>
606    
607     $$('div.widget').invoke('readAttribute', 'widget_id')
608     // ["7", "8", "9"]
609
610 * Add Element.Methods.immediateDescendants, like $A($(element).childNodes) but without text nodes.  [sam]
611
612 * More consistency.  Closes #6573.  [Bob Silva]
613
614 * String.prototype.toQueryParams and Hash.prototype.toQueryString now properly serialize arrays as multiple values.  Closes #4436.  [mislav, altblue, L`OcuS]
615
616 * Fix Form.serialize for options with empty values.  Closes #5033. [tdd, Thomas Fuchs, sam]
617
618 * Add Element.Methods.Simulated for simulating HTMLElement methods in lesser browsers.  Add hasAttribute as the first simulated method.  [tdd, Thomas Fuchs, sam]
619
620 * Add a "retry with throw" button for test error messages. [sam]
621
622 * rake test now runs test/unit/*.html by default.  Additionally, you can specify individual tests to run with the TESTS environment variable, and you can restrict the tests to particular browsers using the BROWSERS environment variable. [sam]
623
624   Examples:
625     % BROWSERS=safari,firefox rake test
626     % TESTS=dom rake test
627
628 * Element.hasClassName now bypasses the Element.ClassNames API for performance.  [sam]
629
630 * Pick some low-hanging performance and DRYness fruit.  [sam]
631   - Inline length property accesses in for loops
632   - Enumerable-ize for loops where it makes sense
633   - Make better use of Element.Methods and Form.Methods/Form.Element.Methods
634
635 * A slew of Ajax improvements.  Closes #6366.  [mislav, sam]
636  
637   Public-facing changes include:
638   - HTTP method can be specified in either lowercase or uppercase, and uppercase is always used when opening the XHR connection
639   - Added 'encoding' option (for POST) with a default of 'UTF-8'
640   - Ajax.Request now recognizes all the JavaScript MIME types we're aware of
641   - PUT body support with the 'postBody' option
642   - HTTP authentication support with the 'username' and 'password' options
643   - Query parameters can be passed as a string or as a hash
644   - Fixed both String.toQueryParams and Hash.toQueryString when handling empty values
645   - Request headers can now be specified as a hash with the 'requestHeaders' option
646
647 * Improve performance of the common case where $ is called with a single argument. Closes #6347. [sam, rvermillion, mislav]
648
649 * Fix Object.inspect to correctly distinguish between null and undefined, fixes #5941 [tdd, mislav]
650
651 * Don't serialize disabled form elements, fixes #4586 [tdd]
652
653 * Make HTML element classes extension mechanism for Safari not throw errors on WebKit beta versions [Thomas Fuchs]
654
655 * Add support for using Element.update() with no or a non-string parameter [Thomas Fuchs]
656
657   Example:
658     $('empty_me').update()          -> clears the element
659     $('easy_as').update(123)        -> set element content to '123'
660
661 * Add unit tests for hashes, fixes #6344 [Tobie Langel]
662
663 * Add clone() method to arrays, fixes #6338 [Tobie Langel]
664
665 * Backing out of [5194] (Element.clear) because of issues with IE on certain elements, #6051
666
667 * Add Element.clear for easily emptying out elements, fixes #6051 [brandon.aaron@gmail.com]
668
669 * Enumerable.each now returns the enumerable to allow for method chaining, fixes #6250 [eventualbuddha]
670
671 * Make makeClipping and undoClipping always return their element to stay chainable
672
673 * Fix an issue with certain Element chain calls not correctly extending elements with Prototype element methods on IE [Thomas Fuchs]
674
675 * Add Enumerable.eachSlice and Enumerable.inGroupsOf, fixes #6046 [rails@tddsworld.com, Thomas Fuchs]
676
677   Example:
678     [1,2,3,4,5].inGroupsOf(3)       -> [[1,2,3],[4,5,null]]
679     [1,2,3].inGroupsOf(4,'x')       -> [[1,2,3,'x']]
680
681 * Complete unit tests for array.js and string.js [Thomas Fuchs]
682
683 * Performance improvements for document.getElementsByClassName, including querying with XPath in supported browsers. [Andrew Dupont]
684
685 * Make Form.getElements() return elements in the correct order, fix broken Form.serialize return, fixes #4249, #6172 [lars@pinds.com, Thomas Fuchs, john]
686
687 * Add various DOM unit tests, fixes #6176, #6177 [tdd]
688
689 * Split Form.serialize into Form.serialize and Form.serializeElements. The latter can be used stand-alone to serialize an array of elements you pass in, instead of the entire form [DHH]
690
691 * Form.Element.disable() and .enable() will now work correctly, fixes #6034 [dresselm@businesslogic.com]
692
693 * Fix IE and Safari issues with Position.positionedOffset, add position.html unit tests, fixes #5621 [renggli@iam.unibe.ch]
694
695 * Fix an issue with Element.undoClipping and IE [Thomas Fuchs]
696
697 * Element.cleanWhitespace now correctly removes consecutive empty text nodes, fixes #3209 [livier.duroselle@gmail.com]
698
699 * Element.extend now does not try to extend text nodes, fixes #4642 [siegfried.puchbauer@gmail.com]
700
701 *1.5.0_rc1* (September 4, 2006)
702
703 * bindAsEventListener now passes along any provided arguments after the event argument.  Closes #5508.  [todd.fisher@revolution.com]
704
705 * Fix makeClipping and undoClipping with local overflow style values other than visible and hidden, fixes #3672  [Thomas Fuchs]
706
707 * Add Element.up, Element.down, Element.previous, and Element.next for easily traversing the DOM.  (Inspired by Thomas Fuchs' original implementation of Element.up: http://pastie.caboo.se/7702) [sam]
708
709   Examples:
710     <div id="sidebar">                  -> $('nav').up() or $('menu').up('div')
711       <ul id="nav">                     -> $('sidebar').down()  or $('sidebar').down('ul') or $('menu').previous()
712         <li>...</li>                    -> $('sidebar').down(1) or $('sidebar').down('li')
713         <li>...</li>                    -> $('sidebar').down(2) or $('sidebar').down('li', 2) or $('sidebar').down('li').next('li')
714         <li class="selected">...</li>   -> $('sidebar').down('li.selected')
715       </ul>                             
716       <ul id="menu">                    -> $('sidebar').down('ul').next()
717         ...
718
719 * Refactor $$ and Element.getElementsBySelector into Selector.findChildElements. [sam]
720
721 * Add Element.match, which takes a single CSS selector expression and returns true if it matches the element. [sam]
722
723 * Add Element.ancestors, Element.descendants, Element.previousSiblings, Element.nextSiblings, and Element.siblings. [sam]
724
725 * Add Element.inspect for better DOM debugging. [sam]
726
727 * Add an optional boolean argument to String.prototype.inspect which, when true, makes the string double-quoted instead of single-quoted. [sam]
728
729 * Add the uniq() method to Arrays, which returns a new Array with duplicates removed, fixes #3810 [secondlife]
730
731 * Add stop() method to PeriodicalExecutor, fixes #4801 [Jon Evans]
732
733 * Fix issues with Enumerable.any, ObjectRange.toArray, added unit tests, fixes #4419 [miyamuko, Thomas Fuchs]
734
735 * Fix two instances of unneccesarily redeclared variables, fixes #5229 [Thomas Fuchs]
736
737 * Fix a loop in Element.extend to properly use local variable, fixes #5128 [arrix]
738
739 * Add constants for additional keys in Event, fixes #5411, #5795 [simone_b]
740
741 * Workaround a DOM API bug in Opera in Position.page(), fixes #2407, #5848 [Thomas Fuchs]
742
743 * Remove duplicate definition of Position.clone(), fixes #3765 [Thomas Fuchs]
744
745 * Make destructive Element, Form, and Form.Element methods return their first argument, so that multiple calls can be chained together. [sam]
746
747   ex. $("sidebar").addClassName("selected").show();
748
749   The following methods now return their first argument: Element.toggle, Element.hide, Element.show, Element.remove, Element.update, Element.replace, Element.addClassName, Element.removeClassName, Element.observe, Element.stopObserving, Element.cleanWhitespace, Element.scrollTo, Element.setStyle, Element.makePositioned, Element.undoPositioned, Element.makeClipping, Element.undoClipping, Form.reset, Form.disable, Form.enable, Form.focusFirstElement, Form.Element.focus, Form.Element.select, Form.Element.clear, Form.Element.activate, Form.Element.disable, Form.Element.enable.
750
751 * For consistency, Element.toggle, Element.show, Element.hide, Field.clear, and Field.present no longer take an arbitrary number of arguments. [sam]
752  
753   !! BACKWARDS COMPATIBILITY CHANGE !!
754  
755   If you have code that looks like this:
756     Element.show('page', 'sidebar', 'content');
757   You need to replace it with code like this:
758     ['page', 'sidebar', 'content'].each(Element.show);
759
760 * Mix in Form and Form.Element methods to forms and form field elements with $() and $$(). Closes #4448. [Dan Webb, sam]
761
762 * Add Object.clone [sam]
763
764 * Add Form.Element.disable and Form.Element.enable. Closes #4943. [jan@prima.de]
765
766 * Field is now simply an alias for Form.Element. [sam]
767
768 * Add Element.Methods.getElementsByClassName and Element.Methods.getElementsBySelector. Closes #4669. [Andrew Dupont, DHH, sam]
769
770 * Avoid race condition when stopping an Ajax.PeriodicalUpdater. Closes #4809. [e98cuenc@gmail.com]
771
772 * Improve support for synchronous requests. Closes #5916. [sam, jthrom@gmail.com]
773
774 * Add serialization and observation support for input type=search. Closes #4096. [rpnielsen@gmail.com]
775
776 * Properly decode query components in String.prototype.toQueryParams. Closes #3487. [sam]
777
778 * Add Array.prototype.reduce [sam]:
779   [1, 2].reduce()   // [1, 2]
780   [1].reduce()      // 1
781   [].reduce()       // undefined
782
783 * Add Object.keys and Object.values [sam]
784
785 * Simulate non-GET/POST requests by POSTing with a _method parameter set to the actual verb [DHH]
786
787 * Make Element.update() handle TABLE-related elements with the DOM API because of IE's missing .innerHTML property on them [Thomas Fuchs, thx to Rick Olson]
788
789 * Sync to script.aculo.us unittest.js library as of 2006/08/29 [Thomas Fuchs]
790
791 * Add additional unit tests to test/unit/dom.html for testing Element.update and $().update in various enviroments [Thomas Fuchs]
792
793 * Prevent possible exceptions on unloading the page in IE [Thomas Fuchs]
794
795 *1.5.0_rc0* (April 5, 2006)
796
797 * Modify HTMLElement.prototype and short-circuit Element.extend where possible. Closes #4477. [Thomas Fuchs]
798
799 * Only observe window.onunload in IE for Mozilla bfcache support. Closes #3726. [Mike A. Owens]
800
801 * Don't redefine Array.prototype.shift. Closes #4138. [leeo]
802
803 * Prevent redefining Array.prototype.reverse more than once. Closes #3951. [brettdgibson@gmail.com]
804
805 * Fix Enumerable.min/Enumerable.max to recognize the value 0. Closes #3847, #4190. [rubyonrails@brainsick.com, Martin Bialasinski]
806
807 * Change Ajax.getTransport to prefer XMLHttpRequest in anticipation of IE 7. Closes #3688. [jschrab@malicstower.org, sam]
808
809 * Make Array.prototype.flatten more robust. Closes #3453. [Martin Bialasinski, sam]
810
811 * Fix evalScripts from crashing Firefox if script includes 'var'. Closes #3288, #4165. [rahul@ntag.com, sam]
812
813 * Scope iterators locally. Closes #4589. [sam]
814
815 * Support Insertion.Before/Insertion.After for <tr> elements in IE. Closes #3925. [rails-venkatp@sneakemail.com]
816
817 * Add a contentType option for overriding application/x-www-form-urlencoded in Ajax.Request. Closes #3564. [avif@arc90.com, sam]
818
819 * Surround values in the X-JSON header in parenthesis for better compatibility with Firefox. Closes #4118. [bigsmoke@gmail.com]
820
821 * Fix Form.serialize to properly encode option values in multiple selects in IE. Closes #3291. [rubyonrails@brainsick.com]
822
823 * Cache methods added to DOM elements with Element.extend to prevent memory leaks in IE. Closes #4465. [jaen@laborint.com, sam]
824
825 * 1.5.0_pre1* (March 26, 2006)
826
827 * Add attribute selector support for Selector (and $$). Closes #4368. [devslashnull@gmail.com]
828   Example:
829     $$('form#foo input[type=text]').each(function(input) {
830       input.setStyle({color: 'red'});
831     });
832  
833 * Send Accept header containing 'text/javascript, text/html, application/xml, text/xml */*'' to inform Rails that we prefer RJS, but we'll take HTML or XML or whatever if you can't deliver the goods [DHH]
834
835 * Make $$ work in IE. Closes #3715. [rubyonrails@brainsick.com]
836
837 * Add test/browser.html, which provides a simple object browser for the Prototype source (Firefox/Safari only). [sam]
838
839 * Add Element.extend, which mixes Element methods into a single HTML element.  This means you can now write $('foo').show() instead of Element.show('foo').  $, $$ and document.getElementsByClassName automatically call Element.extend on any returned elements. [sam]
840
841 * Add Element.replace as a cross-browser implementation of the "outerHTML" property. References #3246. [tom@craz8.com]
842
843 * Fix Enumerable.zip iterator behavior. [Marcin Kaszynski, sam]
844
845 *1.5.0_pre0* (January 18, 2006)
846
847 * Add String.prototype.truncate to complement the Action View truncate helper. [sam]
848
849 * Add String.prototype.gsub, String.prototype.sub, and String.prototype.scan, all of which take a pattern and an iterator (or a pattern and a replacement template string in the case of gsub and sub). [sam]
850
851 * Add a Template class for interpolating named keys from an object in a string. [sam]
852
853 * Add the $$ function for finding DOM elements by simple CSS selector strings. [sam]
854   Example: Find all <img> elements inside <p> elements with class "summary", all inside
855            the <div> with id "page". Hide each matched <img> tag.
856              $$('div#page p.summary img').each(Element.hide)
857      
858 * Add a Selector class for matching elements by single CSS selector tokens. [sam]
859
860 * Add Test.Unit.Assertions.assertEnumEqual for comparing Enumerables in tests. [sam]
861
862 * Add Element.childOf(element, ancestor) which returns true when element is a child of ancestor. [sam]
863
864 * Fix escaping in String.prototype.inspect. [sam]
865
866 * Add String.prototype.strip to remove leading and trailing whitespace from a string. [sam]
867
868 * Move Prototype to Rails SVN. [sam]
869   http://dev.rubyonrails.org/svn/rails/spinoffs/prototype/
870  
871 * Make the console nicer. [sam]
872
873 * Prune the source tree. [sam]
Note: See TracBrowser for help on using the browser.