Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 1218 lines (679 sloc) 70.849 kb
cebf7d67 »
2009-04-16 Do not browser sniff when forking `unmark` function in selector suite…
1 * Do not browser sniff when forking `unmark` function in selector suite. Instead use a proper test - PROPERTIES_ATTRIBUTES_MAP. (kangax)
2
74374347 »
2009-04-13 Do not use short-hand element methods notation (@element.getStyle() -…
3 * Do not use short-hand element methods notation (@element.getStyle() -> Element.getStyle(@element)) for performance reasons. Do not use `$A` and `Array.prototype.shift` when `Array.prototype.slice` can be used instead. (kangax)
4
c44a071a »
2009-05-15 `Prototype.Browser.Opera` now uses stronger inference and is determin…
5 * `Prototype.Browser.Opera` now uses stronger inference and is determined by [[Class]] of `window.opera` being - "Opera". (kangax)
6
6f6b73cc »
2009-05-02 Fix error in event.js which prevented attaching more than one respond…
7 * Fix error in event.js which prevented attaching more than one responder for an event name/element combination. [#651 state:resolved] (Rob Lineweaver)
8
c480bd7b »
2009-03-28 Do not sniff when testing for IE's proprietary mouseenter/mouseleave …
9 * Do not sniff when testing for IE's proprietary mouseenter/mouseleave events support. Use more robust inference instead. (kangax)
10
d4c182c0 »
2009-03-24 Use `Prototype.emptyFunction` consistently throughout unit tests. [#2…
11 * Use `Prototype.emptyFunction` consistently throughout unit tests. [#253 state:resolved] (Michael M Slusarz, John David Dalton, kangax)
12
827e6ee1 »
2009-03-23 deprecation extension: mark Array#reduce() as removed. [#569 state:re…
13 * deprecation extension: mark Array#reduce() as removed. [#569 state:resolved] (Tobie Langel)
14
0b4e142d »
2009-03-23 `Form.serialize` now works safely with forms that have "length"-named…
15 * `Form.serialize` now works safely with forms that have "length"-named elements. [#77 state:resolved] (Peter Adrianov, John-David Dalton, kangax)
16
fd46f6bb »
2009-03-22 Bump version number.
17 *1.6.1_rc1* (March 22, 2009)
18
71a86633 »
2009-03-22 `Element#update` now takes care of SCRIPT elements in IE. [#573 state…
19 * `Element#update` now takes care of SCRIPT elements in IE. [#573 state:resolved] (Martin, Tobie Langel, kangax)
20
2c986d8e »
2009-03-22 Remove unused local variables. Fix failing form test.
21 * Remove unused local variables from `Element.extend`. Fix one of the form tests to remove `_extendedByPrototype` by setting it to `undefined` rather than `false` (`_extendedByPrototype` being `false` does not force `Element.extend` to re-extend element). (T.J. Crowder, kangax)
22
fa15f212 »
2009-03-22 Fix `escapeHTML` in Chrome by using a more strict check.
23 * Make test for `escapeHTML`/`unescapeHTML` more strict. (Chrome 1.x escapes "<" and "&" with `innerHTML`, but not ">") (kangax)
24
dee8a101 »
2009-03-21 Fix faulty DOM test.
25 * Remove another sniffing from one of DOM tests. Fixes last IE8 failure. (kangax)
26
0e632476 »
2009-03-21 Make `Element.extend` take care of IE8 HTMLAppletElement and HTMLObje…
27 * `Element.extend` now takes care of IE8 bug when HTMLAppletElement and HTMLObjectElement objects do not inherit from `Element.prototype`. (kangax)
28
eaa8b949 »
2009-03-21 Fix another DOM test to pass in IE8.
29 * Fix DOM tests to use proper feature test when testing `setOpacity` (kangax)
30
06068431 »
2009-03-20 Fix for/htmlFor translation in IE8
31 * Fix another failure in IE8, `for`/`htmlFor` {get/set}Attribute translation. (kangax)
32
30c1935c »
2009-03-20 Fix `writeAttribute` and `readAttribute` failures in IE8. Use proper …
33 * Fix `Element#writeAttribute` and `Element#readAttribute` failures in IE8 due to lack of proper feature testing. (kangax)
34
25a38aa7 »
2009-03-20 resolve conflict
35 * Remove sniffing from one of the DOM tests, which produced failures in IE8. (kangax)
a97c0443 »
2009-03-20 Remove sniffing from one of the DOM tests, making it pass in IE8.
36
4b9bf985 »
2009-03-20 Fix Form.reset test in IE
37 * Fix `Form.reset` test where `respondsTo` wouldn't detect a method due to typeof returning "object" (rather than "function") in IE (kangax)
38
b3435565 »
2009-03-20 Remove Array#reduce [#569 state:resolved]
39 * Remove Array#reduce which currently overrides native `reduce` in clients implementing JS1.8, e.g. Firefox 3+ (Tobie Langel, Andrew Dupont, kangax)
40
c7a5d348 »
2009-03-19 Make sure try/catch/finally is used instead of try/finally [#421 stat…
41 * Make sure try/catch/finally is used instead of try/finally for clients without support for the latter one (e.g. Blackberry, IE) (Ville Koskinen, kangax)
42
43 * Use `in` operator when accessing property of a nodelist to prevent Safari <=2.0.4 from crashing (kangax)
1a375dae »
2009-03-19 Remove sniffing from `$A` by using `in` operator when accessing prope…
44
4fefe328 »
2009-03-10 Add Element#clone as a safe wrapper of native `cloneNode`. (Andrew Du…
45 * Add Element#clone as a safe wrapper of native `cloneNode`. (Andrew Dupont, kangax)
46
8f697f3e »
2009-03-08 Add tests to ensure IE8 properly assigns a class name in the `Element…
47 * Add tests to ensure IE8 properly assigns a class name in the `Element` constructor. [#529 state:resolved] (Riki Fridrich, Andrew Dupont)
48
fa12b001 »
2009-03-08 Remove sniffing from `Element` when detecting broken `setAttribute` i…
49 * Remove sniffing from `Element` when detecting broken `setAttribute` in IE. [#571 state:resolved] (kangax)
50
ba2c2609 »
2009-03-08 Remove sniffing from `Element.update` branching in favor of feature d…
51 * Remove sniffing from `Element.update` branching in favor of feature detection. [#574 state:resolved] (kangax)
52
7833e8c9 »
2009-03-08 Remove sniffing when branching `escapeHTML` and `unescapeHTML`. [#570…
53 * Remove sniffing when branching `escapeHTML` and `unescapeHTML`. [#570 state:resolved] (kangax)
54
e88f22e0 »
2009-02-28 Redefine Element#down in IE 6-7 to avoid extending all descendants wh…
55 * Redefine Element#down in IE 6-7 to avoid extending all descendants when no selector is given. [#452 state:resolved] (eno, Andrew Dupont)
56
57 * Reverse the definitions of Event#pointer(X|Y) and Event#pointer to prevent unnecessary computation. [#403 state:resolved] (Nick Stakenburg, Andrew Dupont)
4a0b9b7c »
2009-02-28 Reverse the definitions of Event#pointer(X|Y) and Event#pointer to pr…
58
9d7a981e »
2009-02-28 Add first-class support for `mouseenter` and `mouseleave` events in n…
59 * Add first-class support for `mouseenter` and `mouseleave` events in non-IE browsers (IE supports them natively). [#350 state:resolved] (Nick Stakenburg, Andrew Dupont)
60
682a55c2 »
2009-02-28 Make sure `_extendedByPrototype`, `_countedByPrototype`, and `prototy…
61 * Make sure `_extendedByPrototype`, `_countedByPrototype`, and `prototypeUID` node expandos are accessed with `typeof` to prevent errors in some environments. [#354 state:resolved] (Hilberty, kangax, Andrew Dupont)
62
26eaa430 »
2009-02-28 Fix issue where Opera 9.x returns incorrect results on certain Select…
63 * Fix issue where Opera 9.x returns incorrect results on certain Selector queries with descendant combinators. [#395 state:resolved] (Arpan, fearphage, kangax, Andrew Dupont)
64
d22a9988 »
2009-02-27 Null out references to elements in cache on page unload. Need this in…
65 * Null out references to elements in cache on page unload. Need this in addition to the Event#stopObserving calls to clean up memory leaks. [#425 state:resolved] (ykphuah, mr_justin, Andrew Dupont)
66
26eaa430 »
2009-02-28 Fix issue where Opera 9.x returns incorrect results on certain Select…
67 * Ensure `toString` and `valueOf` properties are copied to a subclass only when necessary in IE6. [#382 state:resolved] (Samuel Lebeau)
47abfa68 »
2009-02-27 Ensure `toString` and `valueOf` properties are copied to a subclass o…
68
043653a2 »
2009-02-23 Make sure `getAttribute` is used without flag when accessing the "typ…
69 * Make sure `getAttribute` is used without flag when accessing the "type" attribute of an iframe (IE throws error otherwise). [#118 state:resolved] (Zekid, kangax)
70
e9bdaef0 »
2009-02-23 String#gsub should escape RegExp metacharacters when the first argume…
71 * String#gsub should escape RegExp metacharacters when the first argument is a string. [#469 state:resolved] (michael, kangax)
72
e3845ba0 »
2009-02-23 Fix order of replacement in String#unescapeHTML [#544 state:resolved]…
73 * Fix order of replacement in String#unescapeHTML [#544 state:resolved] (SWeini, kangax)
74
432a9422 »
2009-02-22 Fix issue where a Selector query rooted on a node that had not been a…
75 * Fix issue where a Selector query rooted on a node that had not been attached to the document failed in IE. [#464 state:resolved] (jddalton, kangax, Douglas Fraser, Andrew Dupont)
76
8fe51871 »
2009-02-22 Fix Selector to match elements with attributes containing hyphens. [#…
77 * Fix Selector to match elements with attributes containing hyphens. [#285 state:resolved] (leiyou, jddalton, kangax)
78
dc9d274d »
2009-02-22 Make sure Form.reset always returns a reference to the receiver eleme…
79 * Make sure Form.reset always returns a reference to the receiver element. [#309 state:resolved] (Phil, kangax)
80
97fc24a0 »
2009-02-22 Escape ":" and "." characters when doing contextual CSS selection in …
81 * Escape ":" and "." characters when doing contextual CSS selection in browsers that support querySelectorAll. [#559 state:resolved] (fxtentacle, Andrew Dupont)
82
91b787ae »
2009-02-21 Ensure the `target` property on events is never undefined in IE. [#38…
83 * Ensure the `target` property on events is never undefined in IE. [#383 state:resolved] (Mathias Karstädt, Diego Perini, Andrew Dupont)
84
ab1313ea »
2009-02-18 Ensure Element#descendants always returns an array. [#373 state:resol…
85 * Ensure Element#descendants always returns an array. [#373 state:resolved] (kangax)
86
463141ed »
2009-02-10 Update CHANGELOG
87 * Don't switch fixed position elements to absolute in Element.getDimensions [#543 state:resolved] (James Wheare)
88
89 * Avoid infinite loops when calling String#sub with empty pattern [#534 state:resolved] (Samuel Lebeau)
90
9bb3d751 »
2009-02-10 Update CHANGELOG
91 * Switch to Sprockets for building the Prototype distfiles. (sam)
92
997689fc »
2009-01-11 Switch Object.is(Array|String|Number) to use the vastly-superior appr…
93 * Switch Object.is(Array|String|Number) to use the vastly-superior approach discovered by Juriy. (kangax)
94
95 * Further fix to ensure Object.is(String|Number) do not throw exceptions on host objects in IE. (grepmaster, kangax, Tobie Langel, Andrew Dupont)
31d1c6fd »
2009-01-05 Further fix to ensure Object#is(String|Number) do not throw exception…
96
9f5c40c7 »
2008-12-19 Ensure Enumerable#grep can handle strings with RegExp metacharacters.…
97 * Ensure Enumerable#grep can handle strings with RegExp metacharacters. (Marton Kiss-Albert, kangax)
98
e9e8c7fb »
2008-12-16 Switch to the "doScroll approach" for the dom:loaded custom event. [#…
99 * Switch to the "doScroll approach" for the dom:loaded custom event. (javier, Diego Perini, Nick Stakenburg, Andrew Dupont)
100
05499520 »
2008-12-16 I suppose we owe it to our contributors to spell their names right.
101 * Optimize document.viewport.get(Dimensions|Width|Height). (Nick Stakenburg, Andrew Dupont)
c3c95336 »
2008-12-15 Optimize document.viewport.get(Dimensions|Width|Height). [#336 state:…
102
07506e64 »
2008-12-15 Fix issue where Object#isString and Object#isNumber return false for …
103 * Fix issue where Object#isString and Object#isNumber return false for String and Number "wrapper" objects. (atrepp, Samuel Lebeau, Andrew Dupont)
104
60a6c7ac »
2008-12-14 Set document.loaded = true before firing dom:loaded custom event.
105 * Set document.loaded = true before firing dom:loaded custom event. (Andrew Dupont)
106
c4f6066d »
2008-12-15 Allow Element#store to accept an object containing several key/value …
107 * Allow Element#store to accept an object containing several key/value pairs. (ZenCocoon, Andrew Dupont)
108
c493d09b »
2008-12-15 Fix typo in CHANGELOG.
109 * Change Element#store to return the element itself (for chaining). (Andrew Dupont)
1ca385b1 »
2008-12-15 Change Element#retrieve to return the element itself (for chaining).
110
c4c7bf63 »
2008-12-14 Update CHANGELOG.
111 * Add non-bubbling custom events. A new final argument to Element#fire defaults to `true`; pass `false` to prevent bubbling when firing a custom event. (Andrew Dupont)
112
3b211052 »
2008-12-14 Alter event system to use new element storage API rather than have it…
113 * Alter event system to use new element storage API rather than have its own global hashtable. (Andrew Dupont)
114
77b9a261 »
2008-12-14 Alter element storage API to handle the `window` object gracefully.
115 * Add Element#store and Element#retrieve for safe, hash-backed storage of element metadata (no memory leaks). Also add Element#getStorage for working with the element's storage hash directly. Hat tip: Mootools. (ZenCocoon, Andrew Dupont)
3977e667 »
2008-12-12 Added Element#store and Element#retrieve for safe, hash-backed storag…
116
86407790 »
2008-12-11 Fix issue where certain versions of Safari treat class names
117 * Fix issue where certain versions of Safari treat class names case-insensitively in Selector/$$ queries. (Andrew Dupont, kangax, Brice)
118
54bf3435 »
2008-10-26 Fix issue where Function#argumentNames returned incorrect results in …
119 * Fix issue where Function#argumentNames returned incorrect results in IE when comments were intermixed with argument names. (Christophe Porteneuve, T.J. Crowder)
120
c039f68f »
2008-10-10 Selector.patterns should be represented as an ordered structure. [#31…
121 * Selector.patterns should be represented as an ordered structure. (ADO, kangax)
122
535d4e6d »
2008-12-11 function.js rewrite.
123 * Performance improvements in Function methods (Samuel Lebeau, kangax, jddalton, Tobie Langel).
124
34ee2078 »
2008-09-29 Bump version number to 1.6.0.3.
125 *1.6.0.3* (September 29, 2008)
126
413d2fd5 »
2008-09-29 Add support for the Chrome browser in jstest.rb.
127 * Add support for the Chrome browser in jstest.rb. (Andrew Dupont)
128
deb47c63 »
2008-09-28 Workaround a JavaScript exception in Opera.
129 * Workaround a JavaScript exception in Opera. (Thomas Fuchs)
130
289c87d4 »
2008-09-28 Cosmetic changes to CHANGELOG.
131 * Improve NodeList detection for Safari's $A function. (Garrett Smith, jddalton)
b7af8a74 »
2008-07-17 Improve NodeList detection for Safari's $A function. [#187 state:reso…
132
289c87d4 »
2008-09-28 Cosmetic changes to CHANGELOG.
133 * Use different tactic to sniff for Opera in order to avoid false positives in IE. (Tobie Langel, jddalton)
5ddfad8a »
2008-07-17 Use different tactic to sniff for Opera in order to avoid false posit…
134
7444a4ad »
2008-06-26 Rename variable in Form.Element.Serializers.select. [#180 state:resol…
135 * Rename variable in Form.Element.Serializers.select. (jddalton)
136
137 * Coerce Opera's version string into a number whenever we need to sniff. (Sam Holman, jddalton)
6c6f8d39 »
2008-06-26 Coerce Opera's version string into a number whenever we need to sniff…
138
d88c25fd »
2008-05-30 Ensure Object.isElement handles "falsy" values properly.
139 * Ensure Object.isElement handles "falsy" values properly. (kangax)
140
c01d1a26 »
2008-05-29 Fix exiting test task on INT signal.
141 * Fix exiting test task on INT signal. (Samuel Lebeau)
142
32628d41 »
2008-05-28 Fix unit test freeze in IE.
143 * Fix unit test freeze in IE. (Tobie Langel)
144
b31f642e »
2008-05-23 Ensure Hash does not return keys from the prototype chain (e.g., cons…
145 * Ensure Hash does not return keys from the prototype chain (e.g., constructor, valueOf, toString). (kangax)
146
64002a90 »
2008-05-23 Fix toString/valueOf sharing same method reference via closure in Cla…
147 * Fix toString/valueOf sharing same method reference via closure in Class#addMethods. Use plain property assignment, since Object.extend fails to enumerate over toString/valueOf. (kangax)
148
b49c572f »
2008-05-19 Stop Form.Element.disable from stealing focus.
149 * Stop Form.Element.disable from stealing focus. (jddalton)
150
6004aa82 »
2008-09-06 Ensure Element.hide and Element.show return an element, even if you p…
151 * Ensure Element.hide and Element.show return an element, even if you pass an element ID. (Andrew Dupont)
152
ae707f44 »
2008-09-03 Fix an issue where Element#getStyle('height') returns null if the hei…
153 * Fix an issue where Element#getStyle('height') returns null if the height is set to "auto." (kangax, jddalton)
154
919b952e »
2008-09-03 Add unit tests for Element#descendantOf.
155 * Add unit tests for Element#descendantOf. (jddalton)
156
6847d275 »
2008-09-03 Form#serializeElements should not serialize file inputs.
157 * Form#serializeElements should not serialize file inputs. (kangax, Lonesome Boy)
158
9787801f »
2008-04-24 Fix an issue with calling Event.pointer before the DOM is loaded. (ka…
159 * Fix an issue with calling Event.pointer before the DOM is loaded. (kangax, jddalton) [#4 state:resolved]
160
b4ea2abd »
2008-09-03 Element#down on an input element should not raise error.
161 * Element#down on an input element should not raise error. (humeniuc, kangax)
b628c6de »
2008-05-07 Avoid potential memory leaks in Firefox. [#12 state:resolved]
162
fecdee6f »
2008-05-07 More unit tests for Object.isHash.
163 * More unit tests for Object.isHash. (Tobie Langel)
164
206a4c82 »
2008-05-07 Allow Function#argumentNames to handle line breaks between arguments.
165 * Allow Function#argumentNames to handle line breaks between arguments. (Geoff M. Granum, Tobie Langel) [#63 state:resolved]
166
55af63fd »
2008-05-06 For consistency, add additional optional parameter "context" to Numbe…
167 * For consistency, add additional optional parameter "context" to Number.prototype.times. (Samuel Lebeau)
168
9c8d9d89 »
2008-05-05 Replace all instances of foo.__proto__ by foo['__proto__'] for Caja-c…
169 * Replace all instances of foo.__proto__ by foo['__proto__'] for Caja-compliance. (Tobie Langel)
170
d1d2c359 »
2008-05-05 Fix typo.
171 * Speed up Function#argumentNames. Avoid Enum dependency. (Samuel Lebeau, Tobie Langel)
de5cc4a0 »
2008-05-05 Speed up Function#argumentNames. Avoid Enum dependency.
172
b75bc189 »
2008-04-28 Fix Event#element accessing nonexistent tagName property (e.g. when e…
173 * Fix Event#element accessing inexistent tagName property (e.g. when element is a document). (kangax)
174
2c03d1a8 »
2008-04-24 Amended failing Element#identify test.
175 * Amended failing Element#identify test.
176
ae24df95 »
2008-09-02 update changelog.
177 * Refactor unit tests. Unit tests are now dynamically generated from a JavaScript test file and optional HTML, JS and CSS fixtures. [Tobie Langel]
178
d13a9388 »
2008-03-30 Fix issue where Safari improperly reports an element as a descendant …
179 * Fix issue where Safari improperly reports an element as a descendant of itself.
180
a3f7b712 »
2008-03-30 Greatly simplify IE's implementation of Element#descendantOf.
181 * Greatly simplify IE's implementation of Element#descendantOf.
182
35a70710 »
2008-03-28 Prevent exception when using Selector to search for an attribute that…
183 * Prevent exception when using Selector to search for an attribute that is not present. [gryn, Andrew Dupont]
184
55e5d645 »
2008-03-28 Fix issues where Firefox improperly returns the wrong node from a cal…
185 * Fix issues where Firefox improperly returns the wrong node from a call to Event.element. Also fixes possible exception in Event.element in IE. [jdalton, Andrew Dupont]
186
187 * Fix issue where Safari 3 deletes custom properties from the document object when the page is returned to via the back button. [mzsanford, kangax, Andrew Dupont]
188
03c15300 »
2008-03-27 Integrate support for the W3C Selectors API into the Selector class. …
189 * 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). Means minor changes to the semantics of :enabled, :disabled, and :empty in order to comply with CSS spec.
190
855e2731 »
2008-03-19 prototype: Avoid re-extending element in Element#getDimensions.
191 * Avoid re-extending element in Element#getDimensions. [kangax]
192
598387f1 »
2008-03-19 prototype: Prevent Hash#toQueryString from serializing objets.
193 * Prevent Hash#toQueryString from serializing objets. [kangax, Tobie Langel]
194
32b1b6b7 »
2008-03-19 prototype: Fix Event#pointer in IE standard mode. Closes #9920.
195 * Fix Event#pointer in IE standard mode. Closes #9920. [kangax, Tobie Langel]
196
78c4b99d »
2008-03-16 prototype: Instanciate Test.Unit.Logger on window load.
197 * Instanciate Test.Unit.Logger on window load. [Tobie Langel]
198
199 * Unit tests clean-up. [Tobie Langel]
200
6bae548e »
2008-03-16 prototype: Refactor String#escapeHTML to avoid using the with statement.
201 * Refactor String#escapeHTML to avoid using the `with` statement. [Tobie Langel]
202
c01cb850 »
2008-03-16 prototype: Remove usage of the statement from unit tests.
203 * Remove usage of the `with` statement from unit tests. [Tobie Langel]
204
87ce1533 »
2008-03-15 prototype: Complete rewrite of the deprecation helper.
205 * Complete rewrite of the deprecation helper, now renamed UpdateHelper and useable by third-party libs. [Tobie Langel]
206
addfdef8 »
2008-03-09 prototype: Make Element#writeAttribute handle frameborder attribute i…
207 * Make Element#writeAttribute handle frameborder attribute in IE. Closes #11068. [staaky, Tobie Langel]
208
359e8810 »
2008-03-09 prototype: Minor clean-up of selector.js. Closes #10844.
209 * Minor clean-up of selector.js. Closes #10844. [RQuadling]
210
c7e0a3d9 »
2008-03-09 prototype: Make String#unescapeHTML strip tags in IE. Closes #10173.
211 * Make String#unescapeHTML strip tags in IE. Closes #10173. [kangax]
212
bfee207d »
2008-03-09 prototype: Stop form observers in unit tests. Closes #10938.
213 * Stop form observers in unit tests. Closes #10938. [kangax]
214
5a50e4d2 »
2008-03-09 prototype: Performance improvements for Enumerables. Closes #11264.
215 * Performance improvements for Enumerables. Closes #11264. [Ben, Samuel Lebeau]
216
fffb3c1e »
2008-02-29 prototype: mark Hash.toJSON() as removed.
217 * deprecation extension: mark Hash.toJSON() as removed. [Tobie Langel]
218
088c0498 »
2008-02-26 prototype: improvements to deprecation.js.
219 * deprecation extension: mark Class.create() used without arguments as deprecated. [Tobie Langel]
220
221 * deprecation extension: mark Event.unloadCache as removed rather than deprecated. [Tobie Langel]
222
223 * deprecation extension: log everything *but* deprecations with console.error. [Tobie Langel]
224
54a20847 »
2008-02-12 Change deprecation extension to use Firebug's console.warn and consol…
225 * Change deprecation extension to use Firebug's console.warn and console.error. [Andrew Dupont, Tobie Langel]
226
93d359f5 »
2008-02-05 prototype fix a typo.
227 * Make tagName comparisons XHTML-compliant. Closes #11012, #11013, #11014. [cfis, Tobie Langel]
5630369f »
2008-02-05 prototype: Make Prototype tagName comparisons XHTML-compliant. Closes…
228
7821b989 »
2008-02-04 prototype: Avoid breaking Element.prototype in browsers which support…
229 * Avoid breaking Element.prototype in browsers which support it. Closes #11004. [cfis, Tobie Langel]
230
2830ac2a »
2008-02-03 prototype: Prevent Element#cumulativeOffset, Element#getOffsetParent,…
231 * Prevent Element#cumulativeOffset, Element#getOffsetParent, Element#positionedOffset, Element#viewportOffset and Element#clonePosition from throwing an error in IE when called on a parent-less element. Closes #9416, #10192, #10248. [ronstoney, psiborg, kangax]
232
d770a6c7 »
2008-02-03 prototype: Prevent Enumerable#eachSlice from entering into an endless…
233 * Prevent Enumerable#eachSlice from entering into an endless loop if passed an argument smaller than 1. Closes #10665. [kangax, Tobie Langel]
234
f4d68350 »
2008-02-03 prototype: Allow Selector to correctly detect the presence of namespa…
235 * Allow Selector to correctly detect the presence of namespaced attributes. Closes #10987. [Samuel Lebeau, Tobie Langel]
236
ea9d81ee »
2008-02-03 prototype: Make Element#absolutize and Element#relativize always retu…
237 * Make Element#absolutize and Element#relativize always return element. Closes #10983. [kangax]
238
ed146939 »
2008-02-01 prototype: Add deprecation extension.
239 * Add deprecation extension. [Tobie Langel]
240
2827428b »
2008-01-25 prototype: Prepare for 1.6.0.2 release
241 *1.6.0.2* (January 25, 2008)
cc69b9c6 »
2008-01-07 prototype: Add a description to :test and :dist rake tasks.
242
765cba22 »
2008-01-25 prototype: Update the list of officially supported browsers in the RE…
243 * Update the list of officially supported browsers in the README. [sam]
244
25f1a4f0 »
2008-01-25 Forgot the CHANGELOG on the last commit.
245 * Add tests for Element#descendantOf that deal with dynamically-created elements. [Andrew Dupont]
246
c24a390c »
2008-01-25 Ensure positionedOffset properly considers "position: fixed" elements…
247 * Ensure positionedOffset properly considers "position: fixed" elements. Also ensures IE reports offsets correctly by triggering hasLayout when a "static" element has a "fixed" element as an offset parent. Closes #10644. [heygrady, kangax, Andrew Dupont]
248
ffa0d094 »
2008-01-25 Roll back the fix for #9609, since it does not work in Opera. Instead…
249 * Roll back the fix for #9609, since it does not work in Opera. Instead, avoid using "valueOf" or "toString" as field names in forms.
250
a1ec25cd »
2008-01-25 Prevent DOM node expandos _countedByPrototype and _prototypeEventID f…
251 * Prevent DOM node expandos _countedByPrototype and _prototypeEventID from being serialized into (inner|outer)HTML in IE. Closes #10909. [dcpedit, Tobie Langel, Andrew Dupont]
252
794457da »
2008-01-24 Make Ajax.Request#isSameOrigin JavaScript Lint compliant. Backport fi…
253 * Make Ajax.Request#isSameOrigin JavaScript Lint compliant. [Andrew Dupont]
254
0f97f4ce »
2008-01-24 Properly serialize form fields with names that collide with built-in …
255 * Properly serialize form fields with names that collide with built-in JS properties (like "length" or "toString"). Closes #9609. [gryn, kangax]
256
17cd2f9f »
2008-01-24 prototype: Make Object.isArray correctly identify arrays created in a…
257 * Make Object.isArray correctly identify arrays created in another frame. Closes #10374. [pointy, Dean Edwards, Andrew Dupont, Tobie Langel]
258
7942a9e5 »
2008-01-23 Fixed issue where Element#match failed on attribute selectors with si…
259 * Fixed issue where Element#match failed on attribute selectors with single or double quotes. Closes #10067. [Cezary Okupski, Andrew Dupont]
260
a5fe12b9 »
2008-01-23 prototype: Add tests for Element#match.
261 * Add tests for Element#match. [Tobie Langel]
262
b26f4e34 »
2008-01-23 prototype: Fix Element#writeAttribute to work with 'cellspacing' and …
263 * Fix Element#writeAttribute to work with 'cellspacing' and 'cellpadding' attributes in IE. Closes #9983. [/dev/urandom, Tobie Langel]
264
02cc9992 »
2008-01-23 prototype: Prevent a potential security issue for cross-site ajax req…
265 * Prevent a potential security issue for cross-site ajax requests. [Alexey Feldgendler, sam, Tobie Langel]
266
dcada47c »
2008-01-23 prototype: Test for attribute existence before applying more complex …
267 * Test for attribute existence before applying more complex CSS3 selectors. Closes #10870. [arty, Tobie Langel]
268
269 * Fix "function $A" declaration inside of a conditional (confuses IE). Closes #10882. [Jacco, Andrew Dupont]
c200c27f »
2008-01-22 Fix "function $A" declaration inside of a conditional (confuses IE). …
270
c67fe0b2 »
2008-01-18 Fixed selector parsing so that "#foo [bar=baz]" is treated the same w…
271 * Fixed selector parsing so that "#foo [bar=baz]" is treated the same way as "#foo *[bar=baz]". Closes #10734. [jlukas, kangax, Andrew Dupont]
272
89cbe08e »
2008-01-18 Fix Element#descendantOf logic in IE. Closes #10413. [martymix, kamil…
273 * Fix Element#descendantOf logic in IE. Closes #10413. [martymix, kamil.szot]
274
7052c5a6 »
2008-01-17 prototype: Fix missing var in Element#insert. Closes #10838.
275 * Fix missing "var" in Element#insert. Closes #10838. [Lantash]
276
584acba3 »
2008-01-14 prototype: Add Test.Unit.MessageTemplate class. Add flunk, buildMessa…
277 * Add Test.Unit.MessageTemplate class. Add flunk, buildMessage and assertBlock methods to Test.Unit.Assertions. Refactor accordingly. [Tobie Langel]
278
7cd956d9 »
2008-01-14 prototype: Remove useless binding in Template#evaluate.
279 * Remove useless binding in Template#evaluate. [Tobie Langel]
280
ac48714a »
2008-01-14 prototype: Make Object.inspect more robust.
281 * Make Object.inspect more robust. [Tobie Langel]
282
cc69b9c6 »
2008-01-07 prototype: Add a description to :test and :dist rake tasks.
283 * Add a description to :test and :dist rake tasks. [Christoph Sturm]
284
a246e777 »
2008-01-06 prototype: Fix Selector.matchElements to allow for coma-separated sel…
285 * Fix Selector.matchElements to allow for coma-separated selectors in Element#up/next/previous and Event#findElement. [Samuel Lebeau, Tobie Langel]
5a37860f »
2007-12-20 prototype: Ensure creates an empty array when its argument's length i…
286
0008fe4a »
2008-01-06 prototype: Test.Unit refactoring. Allow running multiple instances of…
287 * Test.Unit refactoring. Allow running multiple instances of Test.Unit.Runner on the same page. Allow rake to run specific testcases (e.g.: rake test BROWSERS=firefox TESTS=array TESTCASES=testUniq,test$w). Closes #10704, #10705, #10706. [nicwilliams, Tobie Langel]
288
7c86e298 »
2008-01-04 prototype: Optimize property detection of outerHTML. Avoids triggerin…
289 * Optimize property detection of outerHTML. Avoids triggering FOUC in Safari 3.0.4. Closes #10702. [subimage, Tobie Langel]
290
6f0def19 »
2008-01-04 prototype: Add document.loaded, a boolean that is set to true once do…
291 * Add document.loaded, a boolean that is set to true once dom:loaded is fired. Setting document.loaded to true before the document is loaded prevents dom:loaded from being fired. [Tobie Langel]
292
b4735bca »
2008-01-03 prototype: Make Element#insert standard-compliant. Fixes an issue in …
293 * Make Element#insert standard-compliant. Fixes an issue in FF3b2 when inserting HTML or text inside DOM nodes which aren't (yet) appended to the document. [Tobie Langel]
294
f553d221 »
2007-12-31 prototype: Add some missing semicolons to the source tree. Closes #10…
295 * Add some missing semicolons to the source tree. Closes #10659. [Richard Quadling]
296
c9a07576 »
2007-12-30 prototype: Ensure Ajax.Response#getHeader returns null for missing he…
297 * Ensure Ajax.Response#getHeader returns null for missing headers in Opera. [Tobie Langel]
298
143b13d0 »
2007-12-30 prototype: Allow WEBrick to simulate slow or dropped connections and …
299 * Allow WEBrick to simulate slow or dropped connections and to ease Ajax request inspection. [Tobie Langel]
300
f0d54a48 »
2007-12-29 prototype: Ensure Ajax.Response#getHeader returns null for missing he…
301 * Ensure Ajax.Response#getHeader returns null for missing headers. [Tobie Langel]
302
5a37860f »
2007-12-20 prototype: Ensure creates an empty array when its argument's length i…
303 * Ensure $A creates an empty array when its argument's length is undefined. Closes #10574. [henryju, Tobie Langel]
304
23f7cb64 »
2007-12-20 prototype: Fix incorrect variable declaration in Event.fire. Closes #…
305 * Fix incorrect variable declaration in Event.fire. Closes #10329. [rubley]
6f0e0ad6 »
2007-12-19 Handle case-sensitivity in Selector tag names better. Closes #5052. […
306
c691de78 »
2007-12-20 Fix the way Selector handles [pseudoclass + combinator] with no space…
307 * Fix the way Selector handles [pseudoclass + combinator] with no space in between. Closes #9696. [kangax, fearphage, Andrew Dupont]
308
05499520 »
2008-12-16 I suppose we owe it to our contributors to spell their names right.
309 * Optimize Element#up/down/next/previous. Closes #10353. [Dylan Bruzenak, Nick Stakenburg, Andrew Dupont]
cb239625 »
2007-12-19 Optimize Element#up/down/next/previous. Closes #10353. [Dylan Bruzena…
310
6f0e0ad6 »
2007-12-19 Handle case-sensitivity in Selector tag names better. Closes #5052. […
311 * Handle case-sensitivity in Selector tag names better. Closes #5052. [mexx, Andrew Dupont]
312
804b99fb »
2007-12-05 prototype: Bump to 1.6.0.1
313 *1.6.0.1* (December 4, 2007)
769ae42f »
2007-11-29 prototype: Ensure that an Ajax.Request's parameters option can be a H…
314
05499520 »
2008-12-16 I suppose we owe it to our contributors to spell their names right.
315 * Change document.viewport.getDimensions to exclude scrollbars in all cases. Closes #10148, #9288. [Nick Stakenburg]
4d3ebf09 »
2007-12-04 Change document.viewport.getDimensions to exclude scrollbars in all c…
316
ae76169b »
2007-12-04 Add logic to Element#getStyle in Opera that fixes inaccurate reportin…
317 * Add logic to Element#getStyle in Opera that fixes inaccurate reporting of computed 'width' and 'height' properties. [Andrew Dupont]
318
769ae42f »
2007-11-29 prototype: Ensure that an Ajax.Request's parameters option can be a H…
319 * Ensure that an Ajax.Request's parameters option can be a Hash. Closes #10172. [kangax, sam]
320
c8528549 »
2007-11-27 * Ensure no comment nodes are returned in Selector queries (IE improp…
321 * Ensure no comment nodes are returned in Selector queries (IE improperly returns comment nodes on getElementsByTagName("*")). Change Element#descendants to use Element#getElementsBySelector in order to avoid this issue. Closes #10220. [Jeff Gobel, Andrew Dupont]
322
b01903d9 »
2007-11-27 * Re-enable the XPath approach in Selector for Safari 3. Falls back t…
323 * Re-enable the XPath approach in Selector for Safari 3. Falls back to the non-XPath version when it sees a problematic token. [Andrew Dupont]
324
26b80332 »
2007-11-27 * Fix a bug in the IE-specific Element#descendantOf logic. [Nicholas,…
325 * Fix a bug in the IE-specific Element#descendantOf logic. [Nicholas, Andrew Dupont]
326
23823048 »
2007-11-15 prototype: Prevent memory leaks in Ajax.PeriodicalUpdater. Closes #10049
327 * Make Ajax.Updater clone its options hash before modifying it. Prevents memory leaks in Ajax.PeriodicalUpdater. Closes #10049 [Mislav Marohnić, Tobie Langel].
328
c371096a »
2007-11-15 prototype: Remove useless variable in Selector.handlers.child. Closes…
329 * Remove useless variable in Selector.handlers.child. Closes #10006 [kuriyama]
330
d20cc77e »
2007-11-15 prototype: Don't redeclare previously declared variables. Closes #10007
331 * Don't redeclare previously declared variables. Closes #10007 [kuriyama]
332
07a16464 »
2007-11-15 prototype: use Object.isUndefined where possible.
333 * For consistency: use Object.isUndefined where possible. [Tobie Langel]
334
b058e24a »
2007-11-15 prototype: Make String#isJSON return false for empty or blank strings…
335 * Make String#isJSON return false for empty or blank strings. Make Ajax.Response#responseJSON null when Ajax.Response#responseText is empty or blank. [Andrew Dupont, Thomas Fuchs, Tobie Langel]
336
f8ffe7b4 »
2007-11-15 prototype: Make Ajax.Response#_getResponseJSON use Ajax.Response#resp…
337 * Make Ajax.Response#_getResponseJSON use Ajax.Response#responseText. [Tobie Langel]
338
74c005c6 »
2007-11-14 prototype: Remove the now redundant forked declaration of Hash#_each.
339 * Remove the forked declaration of Hash#_each. As we are now systematically cloning the object upon instantiation, preventing iteration of shadowed properties is no longer required. [Tobie Langel]
340
0b6a6e2f »
2007-11-13 prototype: Ensure Event#fire always returns an extended event. Make E…
341 * Performance optimizations for Event#findElement. Make Event#findElement's expression argument optional, in which case the extended target element is returned (same as Event#element). [Tobie Langel]
342
343 * Ensure Event#fire always returns an extended event. [Tobie Langel]
344
5ad3bad3 »
2007-11-06 prototype: Version bump
345 *1.6.0* (November 6, 2007)
b83ae95d »
2007-10-17 prototype: Fix template evaluation with empty replacements. Closes #9…
346
9b78edb9 »
2007-11-06 prototype: Fix Class#addMethods for "toString" and "valueOf" methods …
347 * Fix Class#addMethods for "toString" and "valueOf" methods in Internet Explorer. Closes #9901. [sam]
348
b14c9afa »
2007-11-05 Exclude Opera from using the sourceIndex approach in Element#descenda…
349 * Exclude Opera from using the sourceIndex approach in Element#descendantOf. [Tobie Langel, Andrew Dupont]
350
d6b843c9 »
2007-11-05 Ensure Element#hasClassName always returns a boolean. Closes #10075.
351 * Ensure Element#hasClassName always returns a boolean. Closes #10075. [ronnylovtangen, Tobie Langel]
352
8cd85d12 »
2007-11-05 Ensure selectors of the form "[href]" (attribute token with no preced…
353 * Ensure selectors of the form "[href]" (attribute token with no preceding tag name) work properly. Closes #8870. [chao, kangax, Andrew Dupont]
354
7cf17c7b »
2007-11-01 Performance optimizations for Element#descendantOf. Costliness should…
355 * Performance optimizations for Element#descendantOf. Costliness should no longer be dependent on the difference in depth between the parent and the child. [Andrew Dupont]
356
916cbbaf »
2007-10-29 Apply the workaround for the Firefox "blinking element" opacity=1 bug…
357 * Apply the workaround for the Firefox "blinking element" opacity=1 bug only to Firefox 1.5. [Thomas Fuchs]
358
bb66a5eb »
2007-10-26 Changelog entry for [8037].
359 * Add event.stopped, a boolean that is set to `true` when Event#stop is called. [Andrew Dupont, sam]
360
18969c51 »
2007-10-26 prototype: Reset the browser's dimensions to their original settings …
361 * Reset the browser's dimensions to their original settings after running the DOM viewport tests. [sam]
362
1c5e3fe3 »
2007-10-23 prototype: Fix the test runner for Firefox in Leopard.
363 * Fix the test runner for Firefox in Leopard. [sam]
364
4dece6b2 »
2007-10-22 Use String#include wherever possible.
365 * Use String#include wherever possible.
366
16127b02 »
2007-10-22 prototype: In IE, allow opacity to be set on elements not yet attache…
367 * In IE, allow opacity to be set on elements not yet attached to the document. Closes #9904. [Thomas Fuchs, dcpedit, Tobie Langel]
368
f870fba9 »
2007-10-22 prototype: Avoid the try..catch block in Ajax.Response#_getResponseJS…
369 * Avoid the try..catch block in Ajax.Response#_getResponseJSON unless required. [Tobie Langel]
370
0100aee1 »
2007-10-22 prototype: Add more tests to Element.update.
371 * Add more tests to Element.update. Closes #9327. [Tobie Langel]
372
44c9d893 »
2007-10-22 prototype: Make the Ajax.Response#headerJSON property correctly decod…
373 * Make the Ajax.Response#headerJSON property correctly decode unicode characters. Closes #9285. [Marius Feraru, Tobie Langel]
374
827c8c6b »
2007-10-22 prototype: Prevent a Firefox bug from throwing errors on page load/un…
375 * 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]
376
ba96fa77 »
2007-10-21 prototype: Minor cosmetic changes to the display of unit tests in ter…
377 * Minor cosmetic changes to the display of unit tests in terminal. [Tobie Langel]
378
29c0de69 »
2007-10-18 prototype: Make submitting forms work in Opera < 9.1.
379 * Make submitting forms work in Opera < 9.1. Closes #9917, #9463, #8260. [kangax]
380
b83ae95d »
2007-10-17 prototype: Fix template evaluation with empty replacements. Closes #9…
381 * Fix template evaluation with empty replacements. Closes #9692. [Ryan McGeary]
e9e1a674 »
2007-04-29 prototype: trunk is now 1.5.2_pre0
382
8327ffd8 »
2007-10-17 prototype: Hash#toTemplateReplacements is an alias for Hash#toObject …
383 * Hash#toTemplateReplacements is an alias for Hash#toObject so you can once again pass hashes to Template#evaluate and String#interpolate. [sam]
384
d114e76e »
2007-10-17 prototype: Fix Event#is(Left|Middle|Right)Click in IE. Closes #7520.
385 * Fix Event#is(Left|Middle|Right)Click in IE. Closes #7520 (again). [Mislav Marohnić]
386
b83ae95d »
2007-10-17 prototype: Fix template evaluation with empty replacements. Closes #9…
387 *1.6.0_rc1* (October 16, 2007)
388
aada1abb »
2007-10-16 * Ensure Event.* generic methods work in IE, even when the event is n…
389 * Ensure Event.* generic methods work in IE, even when the event is not extended. [Viktor Kojouharov, Andrew Dupont]
390
bfd5353c »
2007-10-16 prototype: Don't translate "keypress" events into "keydown" events.
391 * Don't translate "keypress" events into "keydown" events. [sam]
392 Note: "keypress" is broken in Safari <= 2.x, but Event#stop has no effect on "keydown" events.
393
8d3d6cdb »
2007-10-16 * Changed Element#makeClipping to remember the original overflow valu…
394 * Changed Element#makeClipping to remember the original overflow value, even if it's a non-inline style. [Andrew Dupont]
395
3dd7bd5b »
2007-10-16 prototype: Cross-browser Event#isLeftClick with the addition of is(Mi…
396 * Cross-browser Event#isLeftClick with the addition of is(Middle|Right)Click. Closes #7520. [Christophe Porteneuve, Richard Quadling, Mislav Marohnić]
397
6cd34be0 »
2007-10-16 * Change Selector to use the non-XPath approach for Safari 3 because …
398 * Changed Selector to use the non-XPath approach for Safari 3 because of bugs in its version of document.evaluate. [Andrew Dupont]
399
0dd4ba70 »
2007-10-16 * Changed the Selector regex that tests whether the selector can be e…
400 * 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]
401
402 * Changed Selector pattern match so that descendant combinators after pseudoclass tokens are properly handled. Fixes #9696. [wiktor, kangax, Andrew Dupont]
88f8d3b9 »
2007-10-16 * Changed Selector pattern match so that descendant combinators after…
403
865ac019 »
2007-10-15 prototype: Make sure $w always returns an array.
404 * Make sure $w always returns an array. [Andrew Dupont, Tobie Langel]
405
06327788 »
2007-10-14 Add more tests to Hash.
406 * Add more tests to Hash. [Mislav Marohnić]
407
941359b2 »
2007-10-14 Performance enhancements to . Closes #9464
408 * Performance enhancements to $A. Closes #9464. [Samuel Lebeau]
409
7dda50a7 »
2007-10-14 Make Function#argumentNames work with named functions. Closes #9826
410 * Make Function#argumentNames work with named functions. Closes #9826. [Samuel Lebeau]
411
96af1b75 »
2007-10-14 Add Object.isHash.
412 * Add Object.isHash. [Tobie Langel]
413
d195111a »
2007-10-13 Performance improvements to String#times.
414 * Performance improvements to String#times. [Martin Ström]
415
db371ddb »
2007-10-13 Make Ajax.Response#getHeaderJSON and Ajax.Response#getResponseJSON ps…
416 * Make Ajax.Response#getHeaderJSON and Ajax.Response#getResponseJSON pseudo private instance methods. [Tobie Langel]
417
e7bb042a »
2007-10-13 Make ObjectRange use the new Class.create syntax.
418 * Make ObjectRange use the new Class.create syntax. [Mislav Marohnić]
419
420 * Fix a failing ClassCreate test case in IE. [Tobie Langel]
421
d25b863c »
2007-10-13 Complete rewrite of the Hash class.
422 * Complete rewrite of the Hash class.
423
424 !! BACKWARDS COMPATIBILITY CHANGE !! This new version of Hash is NOT backwards compatible with the former Hash class.
425
426 Properties are now hidden away in an private store to prevent the risk of collision with Hash's instance and mixed-in methods.
427 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.
428
429 - Make $H(object) equivalent to new Hash(object). Both now return a new (cloned) instance of Hash in all circumstances.
430 - Make Hash#merge non-destructive.
431
432 - Add Hash#update (a destructive version of Hash#merge).
433 - Add Hash#clone (returns a new, cloned instance of Hash).
434 - Add Hash#toObject (returns a clone of the contained object).
435 - Add Hash#get(key) (returns the value of the specified property).
436 - Add Hash#set(key, value) (sets the value of the given property. returns the value).
437 - Add Hash#unset(key) (deletes the specified property and returns its value).
438 - Add Hash.from as a alias to $H for consistency with Array.from.
439 - Add Object.toQueryString.
440
441 - Deprecate Hash.toQueryString (use Object.toQueryString or the instance method Hash#toQueryString instead).
442
443 - Remove Hash#remove (use Hash#unset instead).
444 - Remove Hash.toJSON (use Object.toJSON or the instance method Hash#toJSON instead). [sam, Tobie Langel]
445
4607e29f »
2007-10-11 prototype: Element#wrap now returns the wrapper instead of the elemen…
446 * Element#wrap now returns the wrapper instead of the element being wrapped. [sam]
447
115d3e45 »
2007-10-11 prototype: Namespace all custom event names to avoid conflicts with n…
448 * Namespace all custom event names to avoid conflicts with native DOM events. [sam]
449 - 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")
450 - The "contentloaded" event is now "dom:loaded".
451 - 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.
452
c35598ca »
2007-10-11 prototype: Clean up the new class API.
453 * Clean up the new class API. [sam, Tobie Langel]
454 - Add Class#addMethods for adding instance methods to classes.
455 - Remove Class.extend and Class.mixin.
456 - 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.
457
8ca43a5c »
2007-10-08 prototype: Fix contentloaded event initialization in IE. Closes #9457…
458 * Fix contentloaded event initialization in IE. Closes #9457, #9488, #9707. [Mislav Marohnić]
459
c904fe76 »
2007-10-08 prototype: Deprecate document.getElementsByClassName and Element#getE…
460 * 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]
461 For more information see https://bugzilla.mozilla.org/show_bug.cgi?id=390411
462
cf886699 »
2007-10-08 prototype: Fix missing "var" in selector.js. Closes #9761.
463 * Fix missing "var" in selector.js. Closes #9761. [Tobie Langel]
464
4b1fb7e0 »
2007-10-08 prototype: Date#toJSON now returns times in UTC for better compatibil…
465 * Date#toJSON now returns times in UTC for better compatibility with json.js. Closes #9332. [Tobie Langel]
466
8cf1f895 »
2007-10-08 prototype: Ensure document._getElementsByXPath extends the elements i…
467 * Ensure document._getElementsByXPath extends the elements it returns; fixes $$ not returning extended elements in Opera 9.2. Closes #8843. [jdalton]
468
469 * Update Prototype.Browser.MobileSafari for iPod touch compatibility. [sam]
470
746a905e »
2007-10-06 Add tests for Object.extend and Object.clone.
471 * Add tests for Object.extend and Object.clone. [Tobie Langel]
472
cca235b1 »
2007-10-03 Prototype: Add a test for Form.Observer.
473 * Add a test for Form.Observer. [Christoph Sturm]
474
6c94af70 »
2007-08-27 Make sure setting opacity works on elements that have "no layout" in IE.
475 * Make sure setting opacity works on elements that have "no layout" in IE. [Thomas Fuchs]
476
6ed9095d »
2007-08-23 prototype: Simplify Class.create by establishing a prototype chain wh…
477 * Simplify Class.create by establishing a prototype chain when subclassing. Closes #9342. [Ben Newman]
478
5d3fd6f3 »
2007-08-21 prototype: Fix Ajax.PeriodicalUpdater for compatibility with Ajax.Res…
479 * Fix Ajax.PeriodicalUpdater for compatibility with Ajax.Response. Closes #9321. [kampers]
480
001b5486 »
2007-08-21 prototype: Ensure that classes always have an initialize method.
481 * Ensure that classes always have an initialize method. [Mislav Marohnić]
482
6086db40 »
2007-08-18 prototype: Update Template, Selector, Ajax.*, and ObjectRange classes…
483 * Update Template, Selector, Ajax.*, and ObjectRange classes to use the new class system. [Mislav Marohnić]
484
75b3f3c8 »
2007-08-18 prototype: Change Abstract.TimedObserver to subclass PeriodicalExecut…
485 * 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ć]
486
bfba40e0 »
2007-08-18 prototype: Fix Class.mixin to extend the class's prototype.
487 * Fix Class.mixin to extend the class's prototype. [Mislav Marohnić]
488
b923d6dd »
2007-08-18 prototype: Fix superclass method call breakage from [7337].
489 * Fix superclass method call breakage from [7337]. [Mislav Marohnić, sam]
490
702d9688 »
2007-08-17 prototype: Change Class.extend to allow for superclass method resolut…
491 * Change Class.extend to allow for superclass method resolution and remove Class.inherit. Closes #9274. [Samuel Lebeau]
492
b2f884b4 »
2007-08-17 prototype: Event handlers are now bound to the observed element, not …
493 * Event handlers are now bound to the observed element, not the event's target element. [Dan Webb]
494
aa1a7f5b »
2007-08-17 prototype: Define Node constants conditionally after checking for Nod…
495 * 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ć]
496
194fda0b »
2007-08-17 prototype: Make sure Enumerable#include doesnt do type comparision. […
497 * Make sure Enumerable#include doesn't do type comparision. [Mislav Marohnić]
498
f86ac770 »
2007-08-14 Prototype: Add contextmenu to Event.DOMEvents.
499 * Add contextmenu to Event.DOMEvents. [Thomas Fuchs]
500
1a0f6b3f »
2007-08-15 Prototype: update trunk CHANGELOG
501 *1.6.0_rc0* (August 15, 2007)
502
d8b8c658 »
2007-08-14 prototype: Fix readAttribute-related failure in form.html in IE.
503 * Fix readAttribute-related failure in form.html in IE. [sam, Andrew Dupont]
504
c27f2de3 »
2007-08-14 prototype: Fix failing dom.html and selector.html tests in IE.
505 * Fix failing dom.html and selector.html tests in IE. [Tobie Langel, Andrew Dupont]
506
c603fc5d »
2007-08-13 prototype: Make sure the WebKit redefinition of Element#cumulativeOff…
507 * Make sure the WebKit redefinition of Element#cumulativeOffset uses Element._returnOffset. Closes #9245. [mdaines]
508
11f25aa9 »
2007-08-11 prototype: Make sure Element#observe is always chainable.
509 * Make sure Element#observe and Element#stopObserving are always chainable. [sam]
d2974cfc »
2007-08-11 prototype: Make sure Element#stopObserving is always chainable.
510
14ea77ef »
2007-08-11 prototype: Event.fire/Element#fire now returns the newly-fired event …
511 * Event.fire/Element#fire now returns the newly-fired event instead of the event's target element. [sam]
512
d7da841c »
2007-08-11 prototype: Restrict Event.DOMEvents to include only events that can b…
513 * Restrict Event.DOMEvents to include only events that can be supported in all browsers. [sam]
514
ffa744e4 »
2007-08-11 prototype: Fix a failing test in base.html in Safari 2.
515 * Fix a failing test in base.html in Safari 2. [Tobie Langel]
516
5f76c255 »
2007-08-10 Fix Element#positionedOffset and Element#getOffsetParent for static e…
517 * Fix Element#positionedOffset and Element#getOffsetParent for static elements on IE. [Thomas Fuchs]
518
2fbb4900 »
2007-08-09 prototype: Make sure event handlers and their wrappers are removed fr…
519 * Make sure event handlers and their wrappers are removed from the cache by Event.stopObserving. [sam, Severin Heiniger]
520
f3d9cb25 »
2007-08-09 Add line numbers to failures when unit testing in Firefox. Closes #9231.
521 * Add line numbers to failures when unit testing in Firefox. Closes #9231. [John Resig]
522
e75cd0ac »
2007-08-09 prototype: Fix Function#argumentNames for IE
523 * Fix Function#argumentNames for Opera and IE. [Thomas Fuchs]
220f6379 »
2007-08-08 prototype: Fix Function#argumentNames for Opera
524
df71a6b5 »
2007-08-08 prototype: Add Object.isString, Object.isNumber, and Object.isUndefin…
525 * Add Object.isString, Object.isNumber, and Object.isUndefined, and clean up the source to make use of Object.isXXX where possible. [sam]
526
ae2ab032 »
2007-08-08 prototype: Add the document.viewport object for querying dimensions a…
527 * Add the document.viewport object for querying dimensions and scroll offsets of the browser viewport. [Andrew Dupont, Thomas Fuchs, sam]
528 Example:
529 document.viewport.getDimensions() // { width: 1149, height: 923 }
530 document.viewport.getWidth() // 1149
531 document.viewport.getHeight() // 923
532 document.viewport.getScrollOffsets() // { left: 0, top: 1592 }
533
c488384f »
2007-08-07 prototype: Add support for brackets in quoted attribute value selecto…
534 * Add support for brackets in quoted attribute value selectors. Closes #9157. [Ken Snyder]
535
536 * Add some missing semicolons to the source tree. Closes #9140. [jdalton]
537
cbaec757 »
2007-08-07 Prototype: Fix event extensions and custom events firing for Safari 2.0
538 * Fix event extensions and custom events firing for Safari 2.0. [Thomas Fuchs]
539
30aa7a65 »
2007-08-04 prototype: Add RegExp.escape for escaping regular expression strings.…
540 * Add RegExp.escape for escaping regular expression strings. Closes #9094. [Ken Snyder]
541
aa4602b4 »
2007-08-04 prototype: Merge -r7242:HEAD from ../branches/1-6-0-events. Adds supp…
542 * 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]
543
544 * 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ć]
545 Example:
546 document.observe("contentloaded", function() {
547 $$("a").invoke("identify"); // give all <a> tags an ID
548 });
549
550 * 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]
551
552 * Extend the event object with methods from Event.Methods and normalize it in IE. [sam, Mislav Marohnić]
553
554 * Remove support for observing the capturing phase of DOM events, since we can't support it in all browsers. [sam]
555
52cf3f25 »
2007-08-04 prototype: Merge -r7016:HEAD from ../branches/ajax. Add Ajax.Response…
556 * 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]
557
558 * Add an isRunningFromRake property to unit tests. [Tobie Langel]
559
560 * Add support for Opera browser in jstest.rb. [Tobie Langel]
561
281ac648 »
2007-08-04 prototype: Merge -r6792:HEAD from ../branches/inheritance/{src/base.j…
562 * Inheritance branch merged to trunk; robust inheritance support for Class.create. Closes #5459. [Dean Edwards, Alex Arnell, Andrew Dupont, Mislav Mahronic]
563 - To access a method's superclass method, add "$super" as the first argument. (The naming is significant.) Works like Function#wrap.
564 - 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.
565 - Added Class.extend for dynamically adding methods to existing classes (while preserving inheritance chain). Can also be used for mixins.
566 - 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.
567 - Added Object.isFunction [sam]
568
90c9c69f »
2007-07-30 prototype: Add Function#argumentNames, which returns an ordered array…
569 * Add Function#argumentNames, which returns an ordered array of the function's named arguments. [sam]
570
52cf3f25 »
2007-08-04 prototype: Merge -r7016:HEAD from ../branches/ajax. Add Ajax.Response…
571 * Prevent a crash in Safari 1.3 on String#stripScripts and String#extractScripts. Closes #8332. [grant, Tobie Langel]
572
5645a078 »
2007-07-26 prototype: Add Prototype.Browser.MobileSafari which evaluates to true…
573 * Add Prototype.Browser.MobileSafari which evaluates to true on the iPhone's browser. [sam]
574
82bedcee »
2007-07-24 prototype: Optimize Selector#match and Element#match for simple selec…
575 * Optimize Selector#match and Element#match for simple selectors. Closes #9082. [Andrew Dupont]
576
a529bcf5 »
2007-07-24 prototype: Remove the dependency on Element.ClassNames from Element#a…
577 * Remove the dependency on Element.ClassNames from Element#addClassName/removeClassName/toggleClassName, and deprecate Element.ClassNames. Closes #9073. [Tobie Langel]
578
c0735dba »
2007-07-24 prototype: Make Element#wrap accept a second argument for setting att…
579 * 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]
580
44ef7481 »
2007-07-24 prototype: Improvements for Element#replace, Element#update and Eleme…
581 * Improvements for Element#replace, Element#update and Element#insert. Closes #7429, #9060. [Tobie Langel]
582 - Element#replace/update/insert uses the argument's toElement or toHTML method if present (toElement has precedence if both are present).
583 - Element#replace and Element#update now also accept DOM elements.
584 - Element#replace better handles table-related elements in IE and Opera.
585
586 * Add Object.isArray and Object.isElement (returns true if the object is a DOM node of type 1). [Tobie Langel]
587
588 * Add Object.toHTML (uses the object's toHTML method if present or else passes the object to String.interpret). [Tobie Langel]
589
7b2ce66e »
2007-07-24 prototype: Make Element#setStyle accept a string argument of CSS rule…
590 * 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]
591 Examples:
592 $('id').setStyle('font-size: 12px; float: left; opacity: 0.5');
593 $('id').setStyle({fontSize: '12px', cssFloat: 'left', opacity: 0.5});
594
595 !! BACKWARDS COMPATIBILITY CHANGE !!
596
597 If you have code that looks like this:
598 $('id').setStyle({'font-size': '12px'});
599 You need to replace it with either of the following:
600 $('id').setStyle({fontSize: '12px'});
601 $('id').setStyle('font-size: 12px;');
602
c6f3daad »
2007-07-24 prototype: Add Element#identify, which returns the element's ID if it…
603 * 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]
604
7e6481bc »
2007-07-24 prototype: Make Element#readAttribute work for cloned elements in IE.…
605 * Make Element#readAttribute work for cloned elements in IE. Closes #8481. [chem, Tobie Langel]
606
ff45622e »
2007-07-24 prototype: Template enhancements. Closes #8166.
607 * Template enhancements. Closes #8166. [Christophe Porteneuve]
608 - Added String#interpolate as a shortcut for new Template(...).evaluate(...).
609 - 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.
610 - You can now substitute properties of template replacement values in template strings, using dot or bracket notation (or both). Example:
611 "#{name.last}, #{name.first[0]}. (#{location})".interpolate({
612 name: { first: "Christophe", last: "Porteneuve" }, location: "Paris"
613 }) // "Porteneuve, C. (Paris)"
614
615 * 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]
b59399bd »
2007-07-24 prototype: Extended grep semantics. The first argument to Enumerable#…
616
38fa39af »
2007-07-24 prototype: Make String#scan explicitly return a string. Closes #6350.
617 * 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]
618
513042dd »
2007-07-18 Add Array#intersect for set intersection. Returns a new array contain…
619 * 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]
620 Example:
621 [1,1,3,5].intersect([1,2,3]) -> [1,3]
622
cea24d6c »
2007-07-13 Prototype: Rename Element#getElementsBySelector to Element#select and…
623 * Rename Element#getElementsBySelector to Element#select and add alias for Element#getElementsBySelector. [Thomas Fuchs]
624
625 * Add Element#adjacent as a shortcut to selecting all adjacent nodes (and their children) that match a CSS selector. [Thomas Fuchs]
626
1c17b638 »
2007-07-09 prototype: Enhance the Enumerable and Array APIs to more closely matc…
627 * 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]
628 - Add Array#lastIndexOf, and change Array#indexOf not to overwrite the native method.
629 - Make Enumerable use Array.prototype.forEach instead of _each when possible (slight speed increase).
630 - Add "filter", "entries", "every", and "some" Array aliases.
631 - All Enumerable methods now have an additional parameter, "context", which, if present, specifies the object to which the iterators' "this" is bound.
632 - Function#bind and #curry now return the receiving function if the binding object is undefined.
633
29cd62eb »
2007-06-30 prototype: Temporary workaround for Prototype.BrowserFeatures.Specifi…
634 * Temporary workaround for Prototype.BrowserFeatures.SpecificElementExtensions incorrectly evaluating to true on iPhone. (needs further investigation) [sam]
635
9e7efd53 »
2007-06-27 Prototype: merges from form branch. Closes #5031, #5902, #7595, #8401…
636 * 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ć]
637
638 * 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ć]
639 Examples:
640 $('form').serialize({ submit: 'delete' })
641 $('form').serialize({ hash: false }) //-> equivalent to $('form').serialize()
642
643 * Form#findFirstElement respects HTML tabindexes. Closes #7595. [Christophe Porteneuve]
644
645 * 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ć]
646 Examples:
647 $('text_input').setValue('hello world!')
648 $('remember_me').setValue(true)
649 $('attend_classes').setValue(['cheese rolling', 'evil chemistry'])
650
f2d304b3 »
2007-06-19 prototype: Merge [7066] from branches/1-5-1-1
651 * 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ć]
d6bf5e40 »
2007-06-19 prototype: Make document.getElementsByClassName match a subset of the…
652 Example:
03ae9dd3 »
2007-06-17 * Make document.getElementsByClassName match the WHATWG Web Applicati…
653 document.getElementsByClassName('foo bar')
654
1b8ef5af »
2007-06-17 Fix a Safari rendering issue when floating elements could temporarily…
655 * 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]
9ff57b04 »
2007-06-17 Prevent a crash in Safari when calling String#evalJSON(true) on very …
656
1b8ef5af »
2007-06-17 Fix a Safari rendering issue when floating elements could temporarily…
657 * Prevent a crash in Safari when calling String#evalJSON(true) on very large strings. Add String#isJSON. Closes #7834. [Tobie Langel]
1e13c1d0 »
2007-06-13 Prototype: Prevent a crash in Safari 1.3 on String#stripScripts and S…
658
1b8ef5af »
2007-06-17 Fix a Safari rendering issue when floating elements could temporarily…
659 * Prevent a crash in Safari 1.3 on String#stripScripts and String#extractScripts. Closes #8332. [grant, Tobie Langel]
660
661 * Allow JSON data to contain line breaks. Closes #8271. [pijyster, Tobie Langel]
1e13c1d0 »
2007-06-13 Prototype: Prevent a crash in Safari 1.3 on String#stripScripts and S…
662
51bb86dc »
2007-06-10 Add Hash.prototype.index which returns the first found property that …
663 * Add Hash.prototype.index which returns the first found property that has a specific value. Closes #8528. [Thomas Fuchs, slusarz, Mislav Marohnić]
664 Examples:
665 var hash = $H({a:1,b:'2'});
666 hash.index(1) // -> 'a'
667 hash.index('1') // -> undefined
668
ae2ea8a2 »
2007-06-09 prototype: Ensure HTMLElement exists before creating Element.extend.
669 * Ensure HTMLElement exists before creating Element.extend. [Tobie Langel]
670
86118c3c »
2007-06-06 Prototype: Add Number.prototype.round/ceil/floor/abs as an aliases to…
671 * 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]
0c7bac17 »
2007-06-06 Prototype: Make Element#absolutize and Element#relativize properly us…
672
86118c3c »
2007-06-06 Prototype: Add Number.prototype.round/ceil/floor/abs as an aliases to…
673 * Make Element#absolutize and Element#relativize properly use Element#getStyle. Closes #8580. [Christophe Porteneuve]
225597cb »
2007-06-06 Prototype: Add Number.prototype.round as an alias to Math.round(). [T…
674
431dd4e9 »
2007-06-04 Prototype: Test library fixes: make rake dist work on Windows, only t…
675 * Test library fixes: make rake dist work on Windows, only teardown if a browser is supported. Closes #8463, #8498. [Mislav Marohnić, grant]
676
d4d4fddc »
2007-06-02 Prototype: Change Element.insert syntax to allow multiple positions.
677 * Change Element.insert syntax to allow multiple positions. [Thomas Fuchs]
678 Examples:
679 Element.insert('foo', {top:'bar', bottom:'baz'});
680 $('foo').insert({after: new Element('p').update('bar')});
681 Element.insert('foo', new Element('p').update('bar')); // defaults to bottom
682 Element.insert('foo', 'bar'); // defaults to bottom
683
4cafec8a »
2007-05-31 Prototype: String.prototype.truncate now explicitly converts its retu…
684 * 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]
685
b61bca10 »
2007-05-24 prototype: Event.findElement behaves as expected when the element pas…
686 * Event.findElement behaves as expected when the element passed matches the given selector. Closes #8395. [Mislav Marohnić, Tobie Langel]
687
f099e670 »
2007-05-19 Element.setOpacity now calls removeAttribute on the filter style on I…
688 * 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]
689
55b658ac »
2007-05-18 prototype: Event.findElement now uses Element#up (and as a result can…
690 * Event.findElement now uses Element#up (and as a result can take a CSS selector instead of just a tag name). [Tobie Langel]
691
a8a19eb4 »
2007-05-18 prototype: Minor cleanup of the position methods
692 * Minor cleanup of the position methods [sam]
693
7d2ae294 »
2007-05-18 prototype: Fix Element#clonePosition to call Element#viewportOffset. …
694 * Fix Element#clonePosition to call viewportOffset. Closes #8372. [graemenelson, Christophe Porteneuve]
695
beeb12e7 »
2007-05-18 prototype: Prevent an error being thrown by $$ when #id does not exis…
696 * Prevent an error being thrown by $$ when #id does not exist in $$("div #id"). Closes #8325. [Tobie Langel, ecke]
697
a7a0edd8 »
2007-05-18 Make Prototype.ScriptFragment behave when including Prototype inline.
698 * Make Prototype.ScriptFragment behave when including Prototype inline. [Christophe Porteneuve]
699
5e356c34 »
2007-05-12 prototype: Update CHANGELOG
700 * 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]
701
83b4b337 »
2007-05-12 Merge -r6634:HEAD from ../branches/dom.
702 * Make Element#update and Element#insert work for SELECT tags in IE and Opera. [Tobie Langel]
703
704 * Make Element#insert and Element#update better handle TABLE related elements in IE and Opera. Closes #7776, #8040, #7550, #7776, #7938. [Tobie Langel]
705
706 * Make Element#readAttribute('title') work in Opera. [Tobie Langel]
707
708 * Make Element#replace work with form elements in Firefox and Safari. Closes #8010, #7989. [dsl239, Tobie Langel]
709
710 * Add Element#wrap which wraps the element inside a new one. Closes #5732. [P. Vande, Tobie Langel]
711
712 * 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]
713
93c43b94 »
2007-05-12 prototype: Update CHANGELOG to reflect preferred capitalization for E…
714 * 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]
83b4b337 »
2007-05-12 Merge -r6634:HEAD from ../branches/dom.
715
67a4d005 »
2007-05-12 prototype: Refactor Element.extend and eliminate Element.extend.cache.
716 * Refactor Element.extend and eliminate Element.extend.cache. [sam]
717
562e61fc »
2007-04-29 prototype: Add Function#curry, Function#delay, Function#defer, and Fu…
718 * Add Function#curry, Function#delay, Function#defer, and Function#wrap. Closes #8134. [Andrew Dupont, Tobie Langel, sam]
719
f457c986 »
2007-05-01 prototype: Merge -r6639:HEAD from branches/rel_1-5-1 into trunk.
720 *1.5.1* (May 1, 2007)
721
722 * Don't duplicate the event argument in Function#bindAsEventListener. Closes #6497. [wiktor]
723
724 * Fix Selector :not-clause chaining. [Andrew Dupont]
95df0a7c »
2007-04-29 prototype: Prepare for 1.5.1 release.
725
c580aea3 »
2007-04-28 prototype: 1.5.1_rc4
726 *1.5.1_rc4* (April 27, 2007)
1886b03d »
2007-04-28 prototype: Fix Element#readAttribute to work with the 'type' attribut…
727
d6c7cd9c »
2007-04-28 prototype: Fix $F breakage from [6598].
728 * Fix $F breakage from [6598]. [sam]
729
8a382ff8 »
2007-04-28 prototype: Set window.$continue to an Error with a helpful message fo…
730 * Set window.$continue to an Error with a helpful message for anyone who may still be using "throw $continue". [sam]
731
310b3ecc »
2007-04-28 prototype: Fix jstest.rb IE support so you don't have to close the IE…
732 * Fix jstest.rb IE support so you don't have to close the IE window after each test (yay!). Closes #8207. [Ryan Schuft]
733
b360a939 »
2007-04-28 prototype: Fix jstest.rb Konqueror support. Closes #7140.
734 * Fix jstest.rb Konqueror support. Closes #7140. [Christophe Porteneuve]
735
b76d34e7 »
2007-04-28 prototype: Fix regression in which no-argument calls to Element.addMe…
736 * 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]
737
1886b03d »
2007-04-28 prototype: Fix Element#readAttribute to work with the 'type' attribut…
738 * Fix Element#readAttribute to work with the 'type' attribute in IE. Closes #8160. [Tobie Langel, Wiktor Ihárosi]
739
740 *1.5.1_rc3* (April 24, 2007)
fc91a3e4 »
2007-03-27 Fix an issue with String.prototype.endsWith. Closes #7822. [altblue]
741
47bfeb50 »
2007-04-24 prototype: Add Element#childElements as an alias for Element#immediat…
742 * Add Element#childElements as an alias for Element#immediateDescendants. [Tobie Langel]
743
5784d78f »
2007-04-24 prototype: Add Element#firstDescendant to retrieve the first non-text…
744 * Optimize DOM navigation methods (Element#up, Element#down, Element#previous, Element#next) for no-argument calls. Closes #7848. [haraldmartin, sam]
745
746 * Add Element#firstDescendant to retrieve the first non-text child node of an element. [sam]
747
63342b9c »
2007-04-24 prototype: Element.addMethods should add methods to Element as well a…
748 * Element.addMethods should add methods to Element as well as Element.Methods. Closes #7888. [Andrew Dupont]
749
7a324b85 »
2007-04-24 prototype: Add support for per-request onCreate callbacks to Ajax.Req…
750 * Add support for per-request onCreate callbacks to Ajax.Request. Closes #8011. [Andrew Dupont]
751
4174060d »
2007-04-24 prototype: Don't call evalResponse() when an Ajax response has no Con…
752 * Don't call evalResponse() when an Ajax response has no Content-type header. Closes #7827. [Tobie Langel]
753
fea6bc1a »
2007-04-24 prototype: Automatically strip security delimiter comments from JSON …
754 * 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]
755 For more details on potential security problems, see: http://www.fortifysoftware.com/servlet/downloads/public/JavaScript_Hijacking.pdf
756
643b7bec »
2007-04-24 prototype: Add extra spacing so Array#toJSON and Hash#toJSON generate…
757 * Add extra spacing so Array#toJSON and Hash#toJSON generate YAML-loadable JSON. Closes #7883. [Andrew Dupont]
758
95ac141b »
2007-04-17 Fix Form.request for forms containing an input element with name="act…
759 * Fix Form.request for forms containing an input element with name="action". Closes #8063. [Thomas Fuchs, Mislav Marohnić]
760
761 * Make Event.element extend the returned element. Closes #7870. [Thomas Fuchs]
762
68f3b219 »
2007-04-17 Fix a CHANGELOG typo
763 * Prevent a crash on Safari on String.prototype.stripScripts and extractScripts with large <script> tags. [Thomas Fuchs]
4c90be6a »
2007-04-03 Prevent a crash on Safari on String.prototype.stripScripts and extrac…
764
c0509c7f »
2007-03-29 Prototype: clean (un)escapeHTML IE special casing and optimize speed …
765 * Prevent linefeed normalisation in String.prototype.escapeHTML and unescapeHTML on IE for consistency with other browsers. Speed optimizations for Safari and IE. [Thomas Fuchs]
9a7dcd54 »
2007-03-28 Prevent linefeed normalisation in String.prototype.escapeHTML and une…
766
5f2acb4b »
2007-03-27 Make Hash.toQueryString serialize undefined values. Ensure consistenc…
767 * Make Hash.toQueryString serialize undefined values. Ensure consistency with String.prototype.toQueryParams. Closes #7806. [Mislav Marohnić]
768 Examples:
769 $H({a:'b',c:undefined}).toQueryString() -> 'a=b&c'
770 $H({a:'b',c:null}).toQueryString() -> 'a=b&c='
771 $H('a=b&c'.toQueryParams()).toQueryString() -> 'a=b&c'
772 $H('a=b&c='.toQueryParams()).toQueryString() -> 'a=b&c='
773
4506db2d »
2007-03-27 Fix Selector issues with :not and attribute selector double quotes, f…
774 * Fix issues with Selector an+b logic, :not support, attribute selector double quotes, plus performance improvements. Closes #7873, #7901. [Andrew Dupont]
779cd337 »
2007-03-27 Fix issues with Selector an+b logic, performance improvements. Closes…
775
db2ee677 »
2007-03-27 Fix Form.disable to work again on non-form elements. Closes #6887. [M…
776 * Fix Form.disable to work again on non-form elements. Closes #6887. [Mislav Marohnić]
777
fc91a3e4 »
2007-03-27 Fix an issue with String.prototype.endsWith. Closes #7822. [altblue]
778 * Fix an issue with String.prototype.endsWith. Closes #7822. [altblue]
779
63985a21 »
2007-03-12 prototype: 1.5.1_rc2
780 *1.5.1_rc2* (March 12, 2007)
881b7dc0 »
2007-03-11 Prototype: Fix Element.Methods.descendants() to properly extend eleme…
781
cb1ad0e2 »
2007-03-12 prototype: Add a tab character via innerHTML to the selector whitespa…
782 * Add a tab character via innerHTML to the selector whitespace test. [Christophe Porteneuve]
783
784 * Add an attribution to YUI-Ext's DomQuery in selector.js.
785
d17521f9 »
2007-03-11 Missed ticket #
786 * Make Element.extend work on IE for Nodes with the same ID that where discarded. Closes #7497. [Mislav Marohnić, Thomas Fuchs]
e9501d63 »
2007-03-11 Make Element.extend work on IE for Nodes with the same ID that where …
787
b2845e45 »
2007-03-11 Prototype: Make Selector correctly extend the first element it return…
788 * Make Selector correctly extend the first element it returns on IE. [Thomas Fuchs]
789
a6984e69 »
2007-03-11 Prevent a crash in Safari when using $A() on NodeList objects that co…
790 * Prevent a crash in Safari when using $A() on NodeList objects that contain text nodes. [Thomas Fuchs]
791
881b7dc0 »
2007-03-11 Prototype: Fix Element.Methods.descendants() to properly extend eleme…
792 * Fix Element.Methods.descendants() to properly extend elements on IE. [Thomas Fuchs]
793
811fb862 »
2007-03-09 prototype: 1.5.1_rc1: Fix readAttribute for IE7.
794 *1.5.1_rc1* (March 9, 2007)
795
796 * Fix readAttribute for IE7. [Andrew Dupont]
797
94cfdd3e »
2007-03-09 prototype: 1.5.1_rc0
798 *1.5.1_rc0* (March 8, 2007)
ce639c2c »
2007-01-18 prototype: Update HEADER to reflect new URL.
799
00bce412 »
2007-03-09 prototype: Merge the selector branch into trunk, bringing vast perfor…
800 * Merge the selector branch into trunk, bringing vast performance improvements, bug fixes, and near-complete CSS3 compliance to $$ and Selector. Closes #7568. [Andrew Dupont]
801 Selector speed test: http://andrewdupont.net/test/double-dollar/
802
f160bc4d »
2007-03-09 prototype: Add support for JSON encoding and decoding. Closes #7427.
803 * Add support for JSON encoding and decoding. Closes #7427. [Tobie Langel]
804
f2811927 »
2007-03-09 prototype: Fix double escaping of query parameters in Hash.prototype.…
805 * 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ć]
806
752eebdd »
2007-03-08 Prototype: Fix simulated attribute reading for IE for "href", "src" a…
807 * Fix simulated attribute reading for IE for "href", "src" and boolean attributes. [Mislav Marohnić, Thomas Fuchs]
808
a9ec0911 »
2007-03-05 Prototype: Form.Element.disable() will now call blur(), removed blur(…
809 * Form.Element.disable() will now call blur(), removed blur() call from Form.Element.enable(). Closes #6034. [tdd]
810
fcc23f0d »
2007-03-04 Optimize document.getElementsByClassName and finalize DOM performance…
811 * Optimize document.getElementsByClassName and finalize DOM performance optimization refactoring. Closes #6696. [Mislav Marohnić]
812
813 * Fix an issue with serializing empty array inputs. Closes #7516. [stakadush, Mislav Marohnić]
ebd3351b »
2007-03-04 Fix an issue with serializing empty array inputs, fixes #7516, merges…
814
815 * Add optional third parameter "camelized" to Element.setStyle, for optimized performance if style names are known to be camelCased. [Thomas Fuchs]
aa7ba0d4 »
2007-03-02 Prototype: Add optional third parameter "camlized" to Element.setStyl…
816
94d83334 »
2007-02-28 prototype: Fix a bug in the simulated hasAttribute for IE due to getA…
817 * Fix a bug in the simulated hasAttribute for IE due to getAttributeNode sometimes returning null. [sam]
818
60bb0686 »
2007-02-27 Prototype: Optimize Element.getStyle and add new Element.getOpacity m…
819 * Optimize Element.getStyle and add new Element.getOpacity method. Special case IE and Opera getStyle methods. Closes #7648. [Tobie Langel, Thomas Fuchs]
820
80f6f407 »
2007-02-23 Prototype: Optimize Element.setStyle and add new Element.setOpacity m…
821 * Optimize Element.setStyle and add new Element.setOpacity method, special case IE and Gecko opacity methods. Closes #7585. [savetheclocktower]
822
d1481932 »
2007-02-19 Prototype: Add unified Browser detection by providing Prototype.Brows…
823 * Add unified Browser detection by providing Prototype.Browser.(IE|Gecko|WebKit|Opera) booleans. Closes #6800. [savetheclocktower]
824
5224f0fc »
2007-02-19 Prototype: Add String.prototype.empty and String.prototype.blank (tes…
825 * Add String.prototype.empty and String.prototype.blank (tests if empty or whitespace-only). Closes #7016. [Jonathan Viney, Thomas Fuchs]
826
ab59de39 »
2007-02-19 Prototype: Update README to reflect new URLs, update LICENSE copyrigh…
827 * Update README to reflect new URLs, update LICENSE copyright years. Closes #7426. [Tobie Langel]
828
6eca3f0e »
2007-02-05 prototype: Array.prototype.uniq optimization. Closes #7417.
829 * Array.prototype.uniq optimization. Closes #7417. [Christophe Porteneuve]
830
74596ac2 »
2007-02-05 prototype: String.prototype.endsWith should not fail on multiple occu…
831 * String.prototype.endsWith should not fail on multiple occurrences. Closes #7416. [Christophe Porteneuve]
832
343eae8b »
2007-01-28 prototype: Add Form.Methods.request as a convenience method for seria…
833 * 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]
834
835 Options passed to request() are intelligently merged with the underlying Ajax.Request options:
836 - 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".
837 - 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.
838
7044da81 »
2007-01-27 prototype: Fix $(form).serialize() in Safari and add support for exte…
839 * Fix $(form).serialize() in Safari and add support for extending specific tags to Element.addMethods. Closes #7358. [Andrew Dupont]
840
5345085b »
2007-01-27 prototype: Add String.prototype.startsWith, String.prototype.endsWith…
841 * Add String.prototype.startsWith, String.prototype.endsWith, and String.prototype.include. Closes #7075. [Tobie Langel]
842
c556c896 »
2007-01-27 prototype: Improve performance of String.prototype.escapeHTML by usin…
843 * Improve performance of String.prototype.escapeHTML by using a cached div and text node. Closes #6937. [altblue]
844
8ea007df »
2007-01-19 Prototype: Make setStyle() with opacity: 0 in Internet Explorer work …
845 * Make setStyle() with opacity: 0 in Internet Explorer work correctly. [Thomas Fuchs]
846
84901897 »
2007-01-18 prototype: Form.Element.activate shouldn't raise an exception when th…
847 * Form.Element.activate shouldn't raise an exception when the form or field is hidden. [sam]
848
c89875ce »
2007-01-18 prototype: Remove support for "throw $continue" in Enumerable. Use "r…
849 * Remove support for "throw $continue" in Enumerable. Use "return" instead. [sam]
850
ce639c2c »
2007-01-18 prototype: Update HEADER to reflect new URL.
851 * Update HEADER to reflect new URL. [sam]
852
3c89b25c »
2007-01-18 prototype: Add release date to CHANGELOG
853 *1.5.0* (January 18, 2007)
bb4d189b »
2007-01-18 prototype: Reorganize the source tree.
854
855 * Add test to ensure Content-type header is set for simulated verbs. [sam]
856
857 * Fix Content-Type header for HTTP methods simulated with POST not defaulting to application/x-www-form-urlencoded. [Thomas Fuchs]
858
859 * Simplify form serialization and add support for fields with the same name as Hash methods. Closes #6649. [Mislav Marohnić]
860
861 * Fix attribute selectors for IE. Closes #5170. [Tobie Langel, Andrew Dupont]
862
863 * A slew of dom.js improvements. Closes #4217, #6589, #7001. [Tobie]
864 - Fix Element.getDimensions() for hidden elements, make Element.getHeight() use .getDimensions()
865 - Add Element.getWidth()
866 - Make Element.replace() call .toString() on the html argument (alike .update())
867 - Fix an issue with Element.get/setStyle() and Safari with 'float'
868 - Add a bunch of missing unit tests
869
870 * Fix an issue with Element.setStyle({opacity:''}) setting the opacity to 0 instead of removing the set inline opacity style. [Thomas Fuchs]
871
872 * Ensure Ajax.Request's evalResponse is called before onComplete so that onComplete can reference any elements created during the response. Closes #6727. [jonathan]
873
874 * Ensure the WEBrick test runner sets the correct Content-Type for tests and fixtures. [sam]
875
876 * 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]
877
878 * Make selectors match forms that have an element with name="id" correctly, fixes #5759 [mislav]
879
880 * Remove support for HTTP authorization in Ajax calls introduced with #6366. Closes #6638 [jmecham]
881
882 * Add Enumerable.size() to count elements in an enumerable and the corresponding Array.size() method, fixes #6710 [ZenCocoon]
883
884 * Add String.succ() method to allow for String ranges, fixes #6037 [Cory Hudson, mislav]
885 Examples:
886 'abcd'.succ(); -> 'abce'
887 $R('a','d').map(function(char){ return char; }); -> ['a','b','c','d']
888
889 * Make Element.scrollTo() correctly consider offsets of parent DOM nodes, fixes #6625 [ohader, savetheclocktower]
890
891 * Fix Enumerable.inGroupsOf() to correctly work with fill values that evaluate to false, fixes #6782 [hawk]
892
893 * Remove/cleanup redundant $() calls in dom.js, fixes #6817 [Tobie]
894
895 * Don't cache files in automatic unit tests, fixes #6218 [voidlock]
896
897 * Add $w() to easily create arrays from strings like Ruby's %w, fixes #5682 [glazedginger, brendon.aaron]
898
899 * Add Element.toggleClassName() to toggle CSS classes on elements, fixes #6759 [Tobie]
900
901 * Make Form.getInputs always return an array for consistency, fixes #6475 [Justin Gehtland, savetheclocktower]
902
903 * Make TimedObserver work correctly for SELECT MULTIPLE elements, fixes #6593 [clemos, tdd]
904
905 * 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]
906
907 * Make Element.getStyle() work with camelCased argument, fixes #6686 [Tobie]
908
909 * Fix a redundant check in Array.prototype.compact, fixes #4739 [wlodarcz, mislav]
910
911 * Fix $() to correctly pass back the results of document.getElementById(), notably returning "null" on elements not found, fixes #6582 [adsmart]
912
913 * Change/add assertNull, assertUndefined, assertNullOrUndefined and not-* variants in unittest.js, fixes #6582 [adsmart]
914
915 * Cleanup String.prototype.camelize, fix an issue with String.prototype.underscore, fixes #4714, #6685 [Tobie, Thomas Fuchs]
916
917 * Add String.prototype.capitalize, which returns a string with the first character in upper case, fixes #6666 [Tobie]
918
919 * Make Element.getStyle() and Element.setStyle() handle the CSS 'opacity' property transparently in IE, fixes #6093 [brandon.aaron, Tobie]
920
921 * Fix handling of CSS 'float' property for Element.getStyle() and Element.setStyle(), fixes #4160 [Thomas Fuchs, ericf]
922
923 * Fix that onComplete would be called twice with synchronous Ajax requests on Safari (provides units tests for #5756) [Thomas Fuchs]
924
925 * Fix Form.Field.activate to not select text on buttons in IE, fixes #2653 [sutch, mislav, Thomas Fuchs]
926
927 * Fix String.unescapeHTML() on Firefox for strings that are longer than 2048 bytes, fixes #5789 [Paul Moers, Thomas Fuchs]
928
929 * Redefine Array.prototype.concat for Opera, as the native implemenation doesn't work correctly [Thomas Fuchs]
930
931 * Add unit tests for Function.prototype.bind() [Thomas Fuchs]
932
933 * Add String.prototype.underscore and String.prototype.dasherize [Thomas Fuchs]
934 Examples:
935 'Hello_World'.dasherize() -> 'Hello-World'
936 'borderBottomWidth'.underscore() -> 'border_bottom_width'
937 'borderBottomWidth'.underscore().dasherize() -> 'border-bottom-width'
938
939 *1.5.0_rc2* (November 11, 2006)
940
941 * Ensure that existing DOM properties take precedence over extended element methods in all browsers. Closes #5115. [Sean Kleinjung, sam]
942
943 * 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]
944 Example:
945 <div id="widgets">
946 <div class="widget" widget_id="7">...</div>
947 <div class="widget" widget_id="8">...</div>
948 <div class="widget" widget_id="9">...</div>
949 </div>
950
951 $$('div.widget').invoke('readAttribute', 'widget_id')
952 // ["7", "8", "9"]
953
954 * Add Element.Methods.immediateDescendants, like $A($(element).childNodes) but without text nodes. [sam]
955
956 * More consistency. Closes #6573. [Bob Silva]
957
958 * String.prototype.toQueryParams and Hash.prototype.toQueryString now properly serialize arrays as multiple values. Closes #4436. [mislav, altblue, L`OcuS]
959
960 * Fix Form.serialize for options with empty values. Closes #5033. [tdd, Thomas Fuchs, sam]
961
962 * Add Element.Methods.Simulated for simulating HTMLElement methods in lesser browsers. Add hasAttribute as the first simulated method. [tdd, Thomas Fuchs, sam]
963
964 * Add a "retry with throw" button for test error messages. [sam]
965
966 * 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]
967
968 Examples:
969 % BROWSERS=safari,firefox rake test
970 % TESTS=dom rake test
971
972 * Element.hasClassName now bypasses the Element.ClassNames API for performance. [sam]
973
974 * Pick some low-hanging performance and DRYness fruit. [sam]
975 - Inline length property accesses in for loops
976 - Enumerable-ize for loops where it makes sense
977 - Make better use of Element.Methods and Form.Methods/Form.Element.Methods
978
979 * A slew of Ajax improvements. Closes #6366. [mislav, sam]
980
981 Public-facing changes include:
982 - HTTP method can be specified in either lowercase or uppercase, and uppercase is always used when opening the XHR connection
983 - Added 'encoding' option (for POST) with a default of 'UTF-8'
984 - Ajax.Request now recognizes all the JavaScript MIME types we're aware of
985 - PUT body support with the 'postBody' option
986 - HTTP authentication support with the 'username' and 'password' options
987 - Query parameters can be passed as a string or as a hash
988 - Fixed both String.toQueryParams and Hash.toQueryString when handling empty values
989 - Request headers can now be specified as a hash with the 'requestHeaders' option
990
991 * Improve performance of the common case where $ is called with a single argument. Closes #6347. [sam, rvermillion, mislav]
992
993 * Fix Object.inspect to correctly distinguish between null and undefined, fixes #5941 [tdd, mislav]
994
995 * Don't serialize disabled form elements, fixes #4586 [tdd]
996
997 * Make HTML element classes extension mechanism for Safari not throw errors on WebKit beta versions [Thomas Fuchs]
998
999 * Add support for using Element.update() with no or a non-string parameter [Thomas Fuchs]
1000
1001 Example:
1002 $('empty_me').update() -> clears the element
1003 $('easy_as').update(123) -> set element content to '123'
1004
1005 * Add unit tests for hashes, fixes #6344 [Tobie Langel]
1006
1007 * Add clone() method to arrays, fixes #6338 [Tobie Langel]
1008
1009 * Backing out of [5194] (Element.clear) because of issues with IE on certain elements, #6051
1010
1011 * Add Element.clear for easily emptying out elements, fixes #6051 [brandon.aaron@gmail.com]
1012
1013 * Enumerable.each now returns the enumerable to allow for method chaining, fixes #6250 [eventualbuddha]
1014
1015 * Make makeClipping and undoClipping always return their element to stay chainable
1016
1017 * Fix an issue with certain Element chain calls not correctly extending elements with Prototype element methods on IE [Thomas Fuchs]
1018
1019 * Add Enumerable.eachSlice and Enumerable.inGroupsOf, fixes #6046 [rails@tddsworld.com, Thomas Fuchs]
1020
1021 Example:
1022 [1,2,3,4,5].inGroupsOf(3) -> [[1,2,3],[4,5,null]]
1023 [1,2,3].inGroupsOf(4,'x') -> [[1,2,3,'x']]
1024
1025 * Complete unit tests for array.js and string.js [Thomas Fuchs]
1026
1027 * Performance improvements for document.getElementsByClassName, including querying with XPath in supported browsers. [Andrew Dupont]
1028
1029 * Make Form.getElements() return elements in the correct order, fix broken Form.serialize return, fixes #4249, #6172 [lars@pinds.com, Thomas Fuchs, john]
1030
1031 * Add various DOM unit tests, fixes #6176, #6177 [tdd]
1032
1033 * 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]
1034
1035 * Form.Element.disable() and .enable() will now work correctly, fixes #6034 [dresselm@businesslogic.com]
1036
1037 * Fix IE and Safari issues with Position.positionedOffset, add position.html unit tests, fixes #5621 [renggli@iam.unibe.ch]
1038
1039 * Fix an issue with Element.undoClipping and IE [Thomas Fuchs]
1040
1041 * Element.cleanWhitespace now correctly removes consecutive empty text nodes, fixes #3209 [livier.duroselle@gmail.com]
1042
1043 * Element.extend now does not try to extend text nodes, fixes #4642 [siegfried.puchbauer@gmail.com]
1044
1045 *1.5.0_rc1* (September 4, 2006)
1046
1047 * bindAsEventListener now passes along any provided arguments after the event argument. Closes #5508. [todd.fisher@revolution.com]
1048
1049 * Fix makeClipping and undoClipping with local overflow style values other than visible and hidden, fixes #3672 [Thomas Fuchs]
1050
1051 * 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]
1052
1053 Examples:
1054 <div id="sidebar"> -> $('nav').up() or $('menu').up('div')
1055 <ul id="nav"> -> $('sidebar').down() or $('sidebar').down('ul') or $('menu').previous()
1056 <li>...</li> -> $('sidebar').down(1) or $('sidebar').down('li')
1057 <li>...</li> -> $('sidebar').down(2) or $('sidebar').down('li', 2) or $('sidebar').down('li').next('li')
1058 <li class="selected">...</li> -> $('sidebar').down('li.selected')
1059 </ul>
1060 <ul id="menu"> -> $('sidebar').down('ul').next()
1061 ...
1062
1063 * Refactor $$ and Element.getElementsBySelector into Selector.findChildElements. [sam]
1064
1065 * Add Element.match, which takes a single CSS selector expression and returns true if it matches the element. [sam]
1066
1067 * Add Element.ancestors, Element.descendants, Element.previousSiblings, Element.nextSiblings, and Element.siblings. [sam]
1068
1069 * Add Element.inspect for better DOM debugging. [sam]
1070
1071 * Add an optional boolean argument to String.prototype.inspect which, when true, makes the string double-quoted instead of single-quoted. [sam]
1072
1073 * Add the uniq() method to Arrays, which returns a new Array with duplicates removed, fixes #3810 [secondlife]
1074
1075 * Add stop() method to PeriodicalExecutor, fixes #4801 [Jon Evans]
1076
1077 * Fix issues with Enumerable.any, ObjectRange.toArray, added unit tests, fixes #4419 [miyamuko, Thomas Fuchs]
1078
1079 * Fix two instances of unneccesarily redeclared variables, fixes #5229 [Thomas Fuchs]
1080
1081 * Fix a loop in Element.extend to properly use local variable, fixes #5128 [arrix]
1082
1083 * Add constants for additional keys in Event, fixes #5411, #5795 [simone_b]
1084
1085 * Workaround a DOM API bug in Opera in Position.page(), fixes #2407, #5848 [Thomas Fuchs]
1086
1087 * Remove duplicate definition of Position.clone(), fixes #3765 [Thomas Fuchs]
1088
1089 * Make destructive Element, Form, and Form.Element methods return their first argument, so that multiple calls can be chained together. [sam]
1090
1091 ex. $("sidebar").addClassName("selected").show();
1092
1093 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.
1094
1095 * For consistency, Element.toggle, Element.show, Element.hide, Field.clear, and Field.present no longer take an arbitrary number of arguments. [sam]
1096
1097 !! BACKWARDS COMPATIBILITY CHANGE !!
1098
1099 If you have code that looks like this:
1100 Element.show('page', 'sidebar', 'content');
1101 You need to replace it with code like this:
1102 ['page', 'sidebar', 'content'].each(Element.show);
1103
1104 * Mix in Form and Form.Element methods to forms and form field elements with $() and $$(). Closes #4448. [Dan Webb, sam]
1105
1106 * Add Object.clone [sam]
1107
1108 * Add Form.Element.disable and Form.Element.enable. Closes #4943. [jan@prima.de]
1109
1110 * Field is now simply an alias for Form.Element. [sam]
1111
1112 * Add Element.Methods.getElementsByClassName and Element.Methods.getElementsBySelector. Closes #4669. [Andrew Dupont, DHH, sam]
1113
1114 * Avoid race condition when stopping an Ajax.PeriodicalUpdater. Closes #4809. [e98cuenc@gmail.com]
1115
1116 * Improve support for synchronous requests. Closes #5916. [sam, jthrom@gmail.com]
1117
1118 * Add serialization and observation support for input type=search. Closes #4096. [rpnielsen@gmail.com]
1119
1120 * Properly decode query components in String.prototype.toQueryParams. Closes #3487. [sam]
1121
1122 * Add Array.prototype.reduce [sam]:
1123 [1, 2].reduce() // [1, 2]
1124 [1].reduce() // 1
1125 [].reduce() // undefined
1126
1127 * Add Object.keys and Object.values [sam]
1128
1129 * Simulate non-GET/POST requests by POSTing with a _method parameter set to the actual verb [DHH]
1130
1131 * 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]
1132
1133 * Sync to script.aculo.us unittest.js library as of 2006/08/29 [Thomas Fuchs]
1134
1135 * Add additional unit tests to test/unit/dom.html for testing Element.update and $().update in various enviroments [Thomas Fuchs]
1136
1137 * Prevent possible exceptions on unloading the page in IE [Thomas Fuchs]
1138
1139 *1.5.0_rc0* (April 5, 2006)
1140
1141 * Modify HTMLElement.prototype and short-circuit Element.extend where possible. Closes #4477. [Thomas Fuchs]
1142
1143 * Only observe window.onunload in IE for Mozilla bfcache support. Closes #3726. [Mike A. Owens]
1144
1145 * Don't redefine Array.prototype.shift. Closes #4138. [leeo]
1146
1147 * Prevent redefining Array.prototype.reverse more than once. Closes #3951. [brettdgibson@gmail.com]
1148
1149 * Fix Enumerable.min/Enumerable.max to recognize the value 0. Closes #3847, #4190. [rubyonrails@brainsick.com, Martin Bialasinski]
1150
1151 * Change Ajax.getTransport to prefer XMLHttpRequest in anticipation of IE 7. Closes #3688. [jschrab@malicstower.org, sam]
1152
1153 * Make Array.prototype.flatten more robust. Closes #3453. [Martin Bialasinski, sam]
1154
1155 * Fix evalScripts from crashing Firefox if script includes 'var'. Closes #3288, #4165. [rahul@ntag.com, sam]
1156
1157 * Scope iterators locally. Closes #4589. [sam]
1158
1159 * Support Insertion.Before/Insertion.After for <tr> elements in IE. Closes #3925. [rails-venkatp@sneakemail.com]
1160
1161 * Add a contentType option for overriding application/x-www-form-urlencoded in Ajax.Request. Closes #3564. [avif@arc90.com, sam]
1162
1163 * Surround values in the X-JSON header in parenthesis for better compatibility with Firefox. Closes #4118. [bigsmoke@gmail.com]
1164
1165 * Fix Form.serialize to properly encode option values in multiple selects in IE. Closes #3291. [rubyonrails@brainsick.com]
1166
1167 * Cache methods added to DOM elements with Element.extend to prevent memory leaks in IE. Closes #4465. [jaen@laborint.com, sam]
1168
1169 * 1.5.0_pre1* (March 26, 2006)
1170
1171 * Add attribute selector support for Selector (and $$). Closes #4368. [devslashnull@gmail.com]
1172 Example:
1173 $$('form#foo input[type=text]').each(function(input) {
1174 input.setStyle({color: 'red'});
1175 });
1176
1177 * 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]
1178
1179 * Make $$ work in IE. Closes #3715. [rubyonrails@brainsick.com]
1180
1181 * Add test/browser.html, which provides a simple object browser for the Prototype source (Firefox/Safari only). [sam]
1182
1183 * 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]
1184
1185 * Add Element.replace as a cross-browser implementation of the "outerHTML" property. References #3246. [tom@craz8.com]
1186
1187 * Fix Enumerable.zip iterator behavior. [Marcin Kaszynski, sam]
1188
1189 *1.5.0_pre0* (January 18, 2006)
1190
1191 * Add String.prototype.truncate to complement the Action View truncate helper. [sam]
1192
1193 * 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]
1194
1195 * Add a Template class for interpolating named keys from an object in a string. [sam]
1196
1197 * Add the $$ function for finding DOM elements by simple CSS selector strings. [sam]
1198 Example: Find all <img> elements inside <p> elements with class "summary", all inside
1199 the <div> with id "page". Hide each matched <img> tag.
1200 $$('div#page p.summary img').each(Element.hide)
1201
1202 * Add a Selector class for matching elements by single CSS selector tokens. [sam]
1203
1204 * Add Test.Unit.Assertions.assertEnumEqual for comparing Enumerables in tests. [sam]
1205
1206 * Add Element.childOf(element, ancestor) which returns true when element is a child of ancestor. [sam]
1207
1208 * Fix escaping in String.prototype.inspect. [sam]
1209
1210 * Add String.prototype.strip to remove leading and trailing whitespace from a string. [sam]
1211
1212 * Move Prototype to Rails SVN. [sam]
1213 http://dev.rubyonrails.org/svn/rails/spinoffs/prototype/
1214
1215 * Make the console nicer. [sam]
1216
1217 * Prune the source tree. [sam]
Something went wrong with that request. Please try again.