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

root/spinoffs/prototype/trunk/CHANGELOG

Revision 6604, 26.0 kB (checked in by sam, 3 years ago)

prototype: 1.5.1_rc4

Line 
1 *1.5.1_rc4* (April 27, 2007)
2
3 * Fix $F breakage from [6598].  [sam]
4
5 * Set window.$continue to an Error with a helpful message for anyone who may still be using "throw $continue".  [sam]
6
7 * Fix jstest.rb IE support so you don't have to close the IE window after each test (yay!).  Closes #8207.  [Ryan Schuft]
8
9 * Fix jstest.rb Konqueror support.  Closes #7140.  [Christophe Porteneuve]
10
11 * 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]
12
13 * Fix Element#readAttribute to work with the 'type' attribute in IE.  Closes #8160.  [Tobie Langel, Wiktor Ihárosi]
14
15 *1.5.1_rc3* (April 24, 2007)
16
17 * Add Element#childElements as an alias for Element#immediateDescendants.  [Tobie Langel]
18
19 * Optimize DOM navigation methods (Element#up, Element#down, Element#previous, Element#next) for no-argument calls.  Closes #7848.  [haraldmartin, sam]
20
21 * Add Element#firstDescendant to retrieve the first non-text child node of an element.  [sam]
22
23 * Element.addMethods should add methods to Element as well as Element.Methods.  Closes #7888.  [Andrew Dupont]
24
25 * Add support for per-request onCreate callbacks to Ajax.Request.  Closes #8011.  [Andrew Dupont]
26
27 * Don't call evalResponse() when an Ajax response has no Content-type header.  Closes #7827.  [Tobie Langel]
28
29 * 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]
30   For more details on potential security problems, see: http://www.fortifysoftware.com/servlet/downloads/public/JavaScript_Hijacking.pdf
31
32 * Add extra spacing so Array#toJSON and Hash#toJSON generate YAML-loadable JSON.  Closes #7883.  [Andrew Dupont]
33
34 * Fix Form.request for forms containing an input element with name="action".  Closes #8063.  [Thomas Fuchs, Mislav Marohnić]
35
36 * Make Event.element extend the returned element.  Closes #7870.  [Thomas Fuchs]
37
38 * Prevent a crash on Safari on String.prototype.stripScripts and extractScripts with large <script> tags.  [Thomas Fuchs]
39
40 * Prevent linefeed normalisation in String.prototype.escapeHTML and unescapeHTML on IE for consistency with other browsers. Speed optimizations for Safari and IE.  [Thomas Fuchs]
41
42 * Make Hash.toQueryString serialize undefined values. Ensure consistency with String.prototype.toQueryParams.  Closes #7806.  [Mislav Marohnić]
43   Examples:
44     $H({a:'b',c:undefined}).toQueryString()      -> 'a=b&c'
45     $H({a:'b',c:null}).toQueryString()           -> 'a=b&c='
46     $H('a=b&c'.toQueryParams()).toQueryString()  -> 'a=b&c'
47     $H('a=b&c='.toQueryParams()).toQueryString() -> 'a=b&c='
48    
49 * Fix issues with Selector an+b logic, :not support, attribute selector double quotes, plus performance improvements.  Closes #7873, #7901.  [Andrew Dupont]
50
51 * Fix Form.disable to work again on non-form elements.  Closes #6887.  [Mislav Marohnić]
52
53 * Fix an issue with String.prototype.endsWith.  Closes #7822.  [altblue]
54
55 *1.5.1_rc2* (March 12, 2007)
56
57 * Add a tab character via innerHTML to the selector whitespace test.  [Christophe Porteneuve]
58
59 * Add an attribution to YUI-Ext's DomQuery in selector.js.
60
61 * Make Element.extend work on IE for Nodes with the same ID that where discarded.  Closes #7497.  [Mislav Marohnić, Thomas Fuchs]
62
63 * Make Selector correctly extend the first element it returns on IE.  [Thomas Fuchs]
64
65 * Prevent a crash in Safari when using $A() on NodeList objects that contain text nodes.  [Thomas Fuchs]
66
67 * Fix Element.Methods.descendants() to properly extend elements on IE.  [Thomas Fuchs]
68
69 *1.5.1_rc1* (March 9, 2007)
70
71 * Fix readAttribute for IE7. [Andrew Dupont]
72
73 *1.5.1_rc0* (March 8, 2007)
74
75 * Merge the selector branch into trunk, bringing vast performance improvements, bug fixes, and near-complete CSS3 compliance to $$ and Selector.  Closes #7568.  [Andrew Dupont]
76   Selector speed test: http://andrewdupont.net/test/double-dollar/
77
78 * Add support for JSON encoding and decoding.  Closes #7427.  [Tobie Langel]
79
80 * 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ć]
81
82 * Fix simulated attribute reading for IE for "href", "src" and boolean attributes.  [Mislav Marohnić, Thomas Fuchs]
83
84 * Form.Element.disable() will now call blur(), removed blur() call from Form.Element.enable().  Closes #6034.  [tdd]
85
86 * Optimize document.getElementsByClassName and finalize DOM performance optimization refactoring.  Closes #6696.  [Mislav Marohnić]
87
88 * Fix an issue with serializing empty array inputs.  Closes #7516.  [stakadush, Mislav Marohnić]
89
90 * Add optional third parameter "camelized" to Element.setStyle, for optimized performance if style names are known to be camelCased.  [Thomas Fuchs]
91
92 * Fix a bug in the simulated hasAttribute for IE due to getAttributeNode sometimes returning null.  [sam]
93
94 * Optimize Element.getStyle and add new Element.getOpacity method. Special case IE and Opera getStyle methods.  Closes #7648.  [Tobie Langel, Thomas Fuchs]
95
96 * Optimize Element.setStyle and add new Element.setOpacity method, special case IE and Gecko opacity methods.  Closes #7585.  [savetheclocktower]
97
98 * Add unified Browser detection by providing Prototype.Browser.(IE|Gecko|WebKit|Opera) booleans.  Closes #6800.  [savetheclocktower]
99
100 * Add String.prototype.empty and String.prototype.blank (tests if empty or whitespace-only).  Closes #7016.  [Jonathan Viney, Thomas Fuchs]
101
102 * Update README to reflect new URLs, update LICENSE copyright years.  Closes #7426.  [Tobie Langel]
103
104 * Array.prototype.uniq optimization.  Closes #7417.  [Christophe Porteneuve]
105
106 * String.prototype.endsWith should not fail on multiple occurrences.  Closes #7416.  [Christophe Porteneuve]
107
108 * 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]
109
110   Options passed to request() are intelligently merged with the underlying Ajax.Request options:
111   - 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".
112   - 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.
113
114 * Fix $(form).serialize() in Safari and add support for extending specific tags to Element.addMethods.  Closes #7358.  [Andrew Dupont]
115
116 * Add String.prototype.startsWith, String.prototype.endsWith, and String.prototype.include.  Closes #7075.  [Tobie Langel]
117
118 * Improve performance of String.prototype.escapeHTML by using a cached div and text node.  Closes #6937.  [altblue]
119
120 * Make setStyle() with opacity: 0 in Internet Explorer work correctly.  [Thomas Fuchs]
121
122 * Form.Element.activate shouldn't raise an exception when the form or field is hidden.  [sam]
123
124 * Remove support for "throw $continue" in Enumerable.  Use "return" instead.  [sam]
125
126 * Update HEADER to reflect new URL.  [sam]
127
128 *1.5.0* (January 18, 2007)
129
130 * Add test to ensure Content-type header is set for simulated verbs.  [sam]
131
132 * Fix Content-Type header for HTTP methods simulated with POST not defaulting to application/x-www-form-urlencoded.  [Thomas Fuchs]
133
134 * Simplify form serialization and add support for fields with the same name as Hash methods.  Closes #6649.  [Mislav Marohnić]
135
136 * Fix attribute selectors for IE.  Closes #5170.  [Tobie Langel, Andrew Dupont]
137
138 * A slew of dom.js improvements.  Closes #4217, #6589, #7001.  [Tobie]
139   - Fix Element.getDimensions() for hidden elements, make Element.getHeight() use .getDimensions()
140   - Add Element.getWidth()
141   - Make Element.replace() call .toString() on the html argument (alike .update())
142   - Fix an issue with Element.get/setStyle() and Safari with 'float'
143   - Add a bunch of missing unit tests
144
145 * Fix an issue with Element.setStyle({opacity:''}) setting the opacity to 0 instead of removing the set inline opacity style.  [Thomas Fuchs]
146
147 * Ensure Ajax.Request's evalResponse is called before onComplete so that onComplete can reference any elements created during the response.  Closes #6727.  [jonathan]
148
149 * Ensure the WEBrick test runner sets the correct Content-Type for tests and fixtures. [sam]
150
151 * 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]
152
153 * Make selectors match forms that have an element with name="id" correctly, fixes #5759 [mislav]
154
155 * Remove support for HTTP authorization in Ajax calls introduced with #6366.  Closes #6638 [jmecham]
156
157 * Add Enumerable.size() to count elements in an enumerable and the corresponding Array.size() method, fixes #6710 [ZenCocoon]
158
159 * Add String.succ() method to allow for String ranges, fixes #6037 [Cory Hudson, mislav]
160   Examples:
161     'abcd'.succ();                                   -> 'abce'
162     $R('a','d').map(function(char){ return char; }); -> ['a','b','c','d']
163
164 * Make Element.scrollTo() correctly consider offsets of parent DOM nodes, fixes #6625 [ohader, savetheclocktower]
165
166 * Fix Enumerable.inGroupsOf() to correctly work with fill values that evaluate to false, fixes #6782 [hawk]
167
168 * Remove/cleanup redundant $() calls in dom.js, fixes #6817 [Tobie]
169
170 * Don't cache files in automatic unit tests, fixes #6218 [voidlock]
171
172 * Add $w() to easily create arrays from strings like Ruby's %w, fixes #5682 [glazedginger, brendon.aaron]
173
174 * Add Element.toggleClassName() to toggle CSS classes on elements, fixes #6759 [Tobie]
175
176 * Make Form.getInputs always return an array for consistency, fixes #6475 [Justin Gehtland, savetheclocktower]
177
178 * Make TimedObserver work correctly for SELECT MULTIPLE elements, fixes #6593 [clemos, tdd]
179
180 * 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]
181
182 * Make Element.getStyle() work with camelCased argument, fixes #6686 [Tobie]
183
184 * Fix a redundant check in Array.prototype.compact, fixes #4739 [wlodarcz, mislav]
185
186 * Fix $() to correctly pass back the results of document.getElementById(), notably returning "null" on elements not found, fixes #6582 [adsmart]
187
188 * Change/add assertNull, assertUndefined, assertNullOrUndefined and not-* variants in unittest.js, fixes #6582 [adsmart]
189
190 * Cleanup String.prototype.camelize, fix an issue with String.prototype.underscore, fixes #4714, #6685 [Tobie, Thomas Fuchs]
191
192 * Add String.prototype.capitalize, which returns a string with the first character in upper case, fixes #6666 [Tobie]
193
194 * Make Element.getStyle() and Element.setStyle() handle the CSS 'opacity' property transparently in IE, fixes #6093 [brandon.aaron, Tobie]
195
196 * Fix handling of CSS 'float' property for Element.getStyle() and Element.setStyle(), fixes #4160 [Thomas Fuchs, ericf]
197
198 * Fix that onComplete would be called twice with synchronous Ajax requests on Safari (provides units tests for #5756) [Thomas Fuchs]
199
200 * Fix Form.Field.activate to not select text on buttons in IE, fixes #2653 [sutch, mislav, Thomas Fuchs]
201
202 * Fix String.unescapeHTML() on Firefox for strings that are longer than 2048 bytes, fixes #5789 [Paul Moers, Thomas Fuchs]
203
204 * Redefine Array.prototype.concat for Opera, as the native implemenation doesn't work correctly [Thomas Fuchs]
205
206 * Add unit tests for Function.prototype.bind() [Thomas Fuchs]
207
208 * Add String.prototype.underscore and String.prototype.dasherize [Thomas Fuchs]
209   Examples:
210     'Hello_World'.dasherize()                    -> 'Hello-World'
211     'borderBottomWidth'.underscore()             -> 'border_bottom_width'
212     'borderBottomWidth'.underscore().dasherize() -> 'border-bottom-width'
213
214 *1.5.0_rc2* (November 11, 2006)
215
216 * Ensure that existing DOM properties take precedence over extended element methods in all browsers.  Closes #5115.  [Sean Kleinjung, sam]
217
218 * 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]
219   Example:
220     <div id="widgets">
221       <div class="widget" widget_id="7">...</div>
222       <div class="widget" widget_id="8">...</div>
223       <div class="widget" widget_id="9">...</div>
224     </div>
225    
226     $$('div.widget').invoke('readAttribute', 'widget_id')
227     // ["7", "8", "9"]
228
229 * Add Element.Methods.immediateDescendants, like $A($(element).childNodes) but without text nodes.  [sam]
230
231 * More consistency.  Closes #6573.  [Bob Silva]
232
233 * String.prototype.toQueryParams and Hash.prototype.toQueryString now properly serialize arrays as multiple values.  Closes #4436.  [mislav, altblue, L`OcuS]
234
235 * Fix Form.serialize for options with empty values.  Closes #5033. [tdd, Thomas Fuchs, sam]
236
237 * Add Element.Methods.Simulated for simulating HTMLElement methods in lesser browsers.  Add hasAttribute as the first simulated method.  [tdd, Thomas Fuchs, sam]
238
239 * Add a "retry with throw" button for test error messages. [sam]
240
241 * 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]
242
243   Examples:
244     % BROWSERS=safari,firefox rake test
245     % TESTS=dom rake test
246
247 * Element.hasClassName now bypasses the Element.ClassNames API for performance.  [sam]
248
249 * Pick some low-hanging performance and DRYness fruit.  [sam]
250   - Inline length property accesses in for loops
251   - Enumerable-ize for loops where it makes sense
252   - Make better use of Element.Methods and Form.Methods/Form.Element.Methods
253
254 * A slew of Ajax improvements.  Closes #6366.  [mislav, sam]
255  
256   Public-facing changes include:
257   - HTTP method can be specified in either lowercase or uppercase, and uppercase is always used when opening the XHR connection
258   - Added 'encoding' option (for POST) with a default of 'UTF-8'
259   - Ajax.Request now recognizes all the JavaScript MIME types we're aware of
260   - PUT body support with the 'postBody' option
261   - HTTP authentication support with the 'username' and 'password' options
262   - Query parameters can be passed as a string or as a hash
263   - Fixed both String.toQueryParams and Hash.toQueryString when handling empty values
264   - Request headers can now be specified as a hash with the 'requestHeaders' option
265
266 * Improve performance of the common case where $ is called with a single argument. Closes #6347. [sam, rvermillion, mislav]
267
268 * Fix Object.inspect to correctly distinguish between null and undefined, fixes #5941 [tdd, mislav]
269
270 * Don't serialize disabled form elements, fixes #4586 [tdd]
271
272 * Make HTML element classes extension mechanism for Safari not throw errors on WebKit beta versions [Thomas Fuchs]
273
274 * Add support for using Element.update() with no or a non-string parameter [Thomas Fuchs]
275
276   Example:
277     $('empty_me').update()          -> clears the element
278     $('easy_as').update(123)        -> set element content to '123'
279
280 * Add unit tests for hashes, fixes #6344 [Tobie Langel]
281
282 * Add clone() method to arrays, fixes #6338 [Tobie Langel]
283
284 * Backing out of [5194] (Element.clear) because of issues with IE on certain elements, #6051
285
286 * Add Element.clear for easily emptying out elements, fixes #6051 [brandon.aaron@gmail.com]
287
288 * Enumerable.each now returns the enumerable to allow for method chaining, fixes #6250 [eventualbuddha]
289
290 * Make makeClipping and undoClipping always return their element to stay chainable
291
292 * Fix an issue with certain Element chain calls not correctly extending elements with Prototype element methods on IE [Thomas Fuchs]
293
294 * Add Enumerable.eachSlice and Enumerable.inGroupsOf, fixes #6046 [rails@tddsworld.com, Thomas Fuchs]
295
296   Example:
297     [1,2,3,4,5].inGroupsOf(3)       -> [[1,2,3],[4,5,null]]
298     [1,2,3].inGroupsOf(4,'x')       -> [[1,2,3,'x']]
299
300 * Complete unit tests for array.js and string.js [Thomas Fuchs]
301
302 * Performance improvements for document.getElementsByClassName, including querying with XPath in supported browsers. [Andrew Dupont]
303
304 * Make Form.getElements() return elements in the correct order, fix broken Form.serialize return, fixes #4249, #6172 [lars@pinds.com, Thomas Fuchs, john]
305
306 * Add various DOM unit tests, fixes #6176, #6177 [tdd]
307
308 * 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]
309
310 * Form.Element.disable() and .enable() will now work correctly, fixes #6034 [dresselm@businesslogic.com]
311
312 * Fix IE and Safari issues with Position.positionedOffset, add position.html unit tests, fixes #5621 [renggli@iam.unibe.ch]
313
314 * Fix an issue with Element.undoClipping and IE [Thomas Fuchs]
315
316 * Element.cleanWhitespace now correctly removes consecutive empty text nodes, fixes #3209 [livier.duroselle@gmail.com]
317
318 * Element.extend now does not try to extend text nodes, fixes #4642 [siegfried.puchbauer@gmail.com]
319
320 *1.5.0_rc1* (September 4, 2006)
321
322 * bindAsEventListener now passes along any provided arguments after the event argument.  Closes #5508.  [todd.fisher@revolution.com]
323
324 * Fix makeClipping and undoClipping with local overflow style values other than visible and hidden, fixes #3672  [Thomas Fuchs]
325
326 * 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]
327
328   Examples:
329     <div id="sidebar">                  -> $('nav').up() or $('menu').up('div')
330       <ul id="nav">                     -> $('sidebar').down()  or $('sidebar').down('ul') or $('menu').previous()
331         <li>...</li>                    -> $('sidebar').down(1) or $('sidebar').down('li')
332         <li>...</li>                    -> $('sidebar').down(2) or $('sidebar').down('li', 2) or $('sidebar').down('li').next('li')
333         <li class="selected">...</li>   -> $('sidebar').down('li.selected')
334       </ul>                             
335       <ul id="menu">                    -> $('sidebar').down('ul').next()
336         ...
337
338 * Refactor $$ and Element.getElementsBySelector into Selector.findChildElements. [sam]
339
340 * Add Element.match, which takes a single CSS selector expression and returns true if it matches the element. [sam]
341
342 * Add Element.ancestors, Element.descendants, Element.previousSiblings, Element.nextSiblings, and Element.siblings. [sam]
343
344 * Add Element.inspect for better DOM debugging. [sam]
345
346 * Add an optional boolean argument to String.prototype.inspect which, when true, makes the string double-quoted instead of single-quoted. [sam]
347
348 * Add the uniq() method to Arrays, which returns a new Array with duplicates removed, fixes #3810 [secondlife]
349
350 * Add stop() method to PeriodicalExecutor, fixes #4801 [Jon Evans]
351
352 * Fix issues with Enumerable.any, ObjectRange.toArray, added unit tests, fixes #4419 [miyamuko, Thomas Fuchs]
353
354 * Fix two instances of unneccesarily redeclared variables, fixes #5229 [Thomas Fuchs]
355
356 * Fix a loop in Element.extend to properly use local variable, fixes #5128 [arrix]
357
358 * Add constants for additional keys in Event, fixes #5411, #5795 [simone_b]
359
360 * Workaround a DOM API bug in Opera in Position.page(), fixes #2407, #5848 [Thomas Fuchs]
361
362 * Remove duplicate definition of Position.clone(), fixes #3765 [Thomas Fuchs]
363
364 * Make destructive Element, Form, and Form.Element methods return their first argument, so that multiple calls can be chained together. [sam]
365
366   ex. $("sidebar").addClassName("selected").show();
367
368   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.
369
370 * For consistency, Element.toggle, Element.show, Element.hide, Field.clear, and Field.present no longer take an arbitrary number of arguments. [sam]
371  
372   !! BACKWARDS COMPATIBILITY CHANGE !!
373  
374   If you have code that looks like this:
375     Element.show('page', 'sidebar', 'content');
376   You need to replace it with code like this:
377     ['page', 'sidebar', 'content'].each(Element.show);
378
379 * Mix in Form and Form.Element methods to forms and form field elements with $() and $$(). Closes #4448. [Dan Webb, sam]
380
381 * Add Object.clone [sam]
382
383 * Add Form.Element.disable and Form.Element.enable. Closes #4943. [jan@prima.de]
384
385 * Field is now simply an alias for Form.Element. [sam]
386
387 * Add Element.Methods.getElementsByClassName and Element.Methods.getElementsBySelector. Closes #4669. [Andrew Dupont, DHH, sam]
388
389 * Avoid race condition when stopping an Ajax.PeriodicalUpdater. Closes #4809. [e98cuenc@gmail.com]
390
391 * Improve support for synchronous requests. Closes #5916. [sam, jthrom@gmail.com]
392
393 * Add serialization and observation support for input type=search. Closes #4096. [rpnielsen@gmail.com]
394
395 * Properly decode query components in String.prototype.toQueryParams. Closes #3487. [sam]
396
397 * Add Array.prototype.reduce [sam]:
398   [1, 2].reduce()   // [1, 2]
399   [1].reduce()      // 1
400   [].reduce()       // undefined
401
402 * Add Object.keys and Object.values [sam]
403
404 * Simulate non-GET/POST requests by POSTing with a _method parameter set to the actual verb [DHH]
405
406 * 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]
407
408 * Sync to script.aculo.us unittest.js library as of 2006/08/29 [Thomas Fuchs]
409
410 * Add additional unit tests to test/unit/dom.html for testing Element.update and $().update in various enviroments [Thomas Fuchs]
411
412 * Prevent possible exceptions on unloading the page in IE [Thomas Fuchs]
413
414 *1.5.0_rc0* (April 5, 2006)
415
416 * Modify HTMLElement.prototype and short-circuit Element.extend where possible. Closes #4477. [Thomas Fuchs]
417
418 * Only observe window.onunload in IE for Mozilla bfcache support. Closes #3726. [Mike A. Owens]
419
420 * Don't redefine Array.prototype.shift. Closes #4138. [leeo]
421
422 * Prevent redefining Array.prototype.reverse more than once. Closes #3951. [brettdgibson@gmail.com]
423
424 * Fix Enumerable.min/Enumerable.max to recognize the value 0. Closes #3847, #4190. [rubyonrails@brainsick.com, Martin Bialasinski]
425
426 * Change Ajax.getTransport to prefer XMLHttpRequest in anticipation of IE 7. Closes #3688. [jschrab@malicstower.org, sam]
427
428 * Make Array.prototype.flatten more robust. Closes #3453. [Martin Bialasinski, sam]
429
430 * Fix evalScripts from crashing Firefox if script includes 'var'. Closes #3288, #4165. [rahul@ntag.com, sam]
431
432 * Scope iterators locally. Closes #4589. [sam]
433
434 * Support Insertion.Before/Insertion.After for <tr> elements in IE. Closes #3925. [rails-venkatp@sneakemail.com]
435
436 * Add a contentType option for overriding application/x-www-form-urlencoded in Ajax.Request. Closes #3564. [avif@arc90.com, sam]
437
438 * Surround values in the X-JSON header in parenthesis for better compatibility with Firefox. Closes #4118. [bigsmoke@gmail.com]
439
440 * Fix Form.serialize to properly encode option values in multiple selects in IE. Closes #3291. [rubyonrails@brainsick.com]
441
442 * Cache methods added to DOM elements with Element.extend to prevent memory leaks in IE. Closes #4465. [jaen@laborint.com, sam]
443
444 * 1.5.0_pre1* (March 26, 2006)
445
446 * Add attribute selector support for Selector (and $$). Closes #4368. [devslashnull@gmail.com]
447   Example:
448     $$('form#foo input[type=text]').each(function(input) {
449       input.setStyle({color: 'red'});
450     });
451  
452 * 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]
453
454 * Make $$ work in IE. Closes #3715. [rubyonrails@brainsick.com]
455
456 * Add test/browser.html, which provides a simple object browser for the Prototype source (Firefox/Safari only). [sam]
457
458 * 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]
459
460 * Add Element.replace as a cross-browser implementation of the "outerHTML" property. References #3246. [tom@craz8.com]
461
462 * Fix Enumerable.zip iterator behavior. [Marcin Kaszynski, sam]
463
464 *1.5.0_pre0* (January 18, 2006)
465
466 * Add String.prototype.truncate to complement the Action View truncate helper. [sam]
467
468 * 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]
469
470 * Add a Template class for interpolating named keys from an object in a string. [sam]
471
472 * Add the $$ function for finding DOM elements by simple CSS selector strings. [sam]
473   Example: Find all <img> elements inside <p> elements with class "summary", all inside
474            the <div> with id "page". Hide each matched <img> tag.
475              $$('div#page p.summary img').each(Element.hide)
476      
477 * Add a Selector class for matching elements by single CSS selector tokens. [sam]
478
479 * Add Test.Unit.Assertions.assertEnumEqual for comparing Enumerables in tests. [sam]
480
481 * Add Element.childOf(element, ancestor) which returns true when element is a child of ancestor. [sam]
482
483 * Fix escaping in String.prototype.inspect. [sam]
484
485 * Add String.prototype.strip to remove leading and trailing whitespace from a string. [sam]
486
487 * Move Prototype to Rails SVN. [sam]
488   http://dev.rubyonrails.org/svn/rails/spinoffs/prototype/
489  
490 * Make the console nicer. [sam]
491
492 * Prune the source tree. [sam]
Note: See TracBrowser for help on using the browser.