Commit Graph

251 Commits

Author SHA1 Message Date
Sam Stephenson 4d042a9fa0 Match each element individually in Selector.findElement since Sizzle.matches does not preserve order 2009-10-10 13:24:04 -05:00
Sam Stephenson 4dd878f237 Replace Prototype's Selector implementation with Sizzle 2009-09-19 14:42:59 -05:00
Tobie Langel b039a4791c Update UnittestJS. Modifiy test template accordingly. 2009-08-12 01:25:59 +02:00
Tobie Langel add69978e0 Fix a ridiculous yet harmless typo in a previous commit. Add more tests for PeriodicalExecuter. 2009-07-22 16:06:17 +02:00
Andrew Dupont 059ce21040 Proper fix (and unit tests) for selector escaping issue. 2009-07-17 12:13:47 +02:00
Juriy Zaytsev b2492aeec4 Fix `Template#evaluate` "eating" previous character if `null` was returned from `toTemplateReplacements` function. 2009-06-04 23:14:05 -05:00
Juriy Zaytsev d655665fb6 Make sure (defficient) APPLET, OBJECT and EMBED elements are extended with simulated methods in IE8. Return early if _extendedByPrototype is present on an element. 2009-06-04 23:11:06 -05:00
Juriy Zaytsev 31fe0a0328 Make sure $A works with primitive values. 2009-05-15 22:05:53 -05:00
Andrew Dupont c44a071a3f `Prototype.Browser.Opera` now uses stronger inference and is determined by [[Class]] of `window.opera` being - "Opera". (kangax) 2009-05-15 21:50:32 -05:00
Andrew Dupont cc0a75fe19 Make regex used in `stripTags` stricter. (igor, kangax) [#674 state:resolved] 2009-05-11 23:29:26 -05:00
Andrew Dupont 6f6b73cc75 Fix error in event.js which prevented attaching more than one responder for an event name/element combination. [#651 state:resolved] (Rob Lineweaver) 2009-05-02 13:48:41 -05:00
Juriy Zaytsev d4c182c03d Use `Prototype.emptyFunction` consistently throughout unit tests. [#253 state:resolved] 2009-03-24 07:59:32 -04:00
Juriy Zaytsev 0b4e142d8a `Form.serialize` now works safely with forms that have "length"-named elements. [#77 state:resolved] 2009-03-23 00:15:34 -04:00
Juriy Zaytsev 71a8663370 `Element#update` now takes care of SCRIPT elements in IE. [#573 state:resolved] 2009-03-22 19:04:04 -04:00
Juriy Zaytsev 2c986d8eaf Remove unused local variables. Fix failing form test. 2009-03-22 10:53:08 -04:00
Juriy Zaytsev dee8a1010c Fix faulty DOM test. 2009-03-21 22:23:14 -04:00
Juriy Zaytsev eaa8b949c8 Fix another DOM test to pass in IE8. 2009-03-21 21:09:55 -04:00
Andrew Dupont 9bb8fbf2ff Merge branch 'master' of git@github.com:sstephenson/prototype 2009-03-20 19:44:11 -05:00
Juriy Zaytsev a97c044361 Remove sniffing from one of the DOM tests, making it pass in IE8. 2009-03-20 16:26:08 -04:00
Juriy Zaytsev 4b9bf985a2 Fix Form.reset test in IE 2009-03-20 16:23:38 -04:00
Juriy Zaytsev b34355653e Remove Array#reduce [#569 state:resolved] 2009-03-20 12:05:02 -04:00
Andrew Dupont e0cd7d5edf PDoc cleanup. 2009-03-10 19:08:21 -05:00
Andrew Dupont 8f697f3e85 Add tests to ensure IE8 properly assigns a class name in the `Element` constructor. [#529 state:resolved] (Riki Fridrich, Andrew Dupont) 2009-03-08 20:27:38 -05:00
Andrew Dupont 0b9997e155 Removed errant debug code from unit test. 2009-03-07 18:54:16 -06:00
Andrew Dupont 26eaa4300b Fix issue where Opera 9.x returns incorrect results on certain Selector queries with descendant combinators. [#395 state:resolved] (Arpan, fearphage, kangax, Andrew Dupont) 2009-02-28 04:41:55 -06:00
Andrew Dupont 47abfa68f0 Ensure `toString` and `valueOf` properties are copied to a subclass only when necessary in IE6. [@382 state:resolved] (Samuel Lebeau) 2009-02-27 16:35:05 -06:00
Andrew Dupont ae667274f7 Removed two incorrect string tests. 2009-02-26 00:08:08 -06:00
Andrew Dupont 043653a282 Make sure `getAttribute` is used without flag when accessing the "type" attribute of an iframe (IE throws error otherwise). [#118 state:resolved] (Zekid, kangax) 2009-02-23 20:20:21 -06:00
Andrew Dupont e9bdaef0af String#gsub should escape RegExp metacharacters when the first argument is a string. [#469 state:resolved] (michael, kangax) 2009-02-23 20:13:41 -06:00
Andrew Dupont e3845ba0f6 Fix order of replacement in String#unescapeHTML [#544 state:resolved] (SWeini, kangax) 2009-02-23 20:07:43 -06:00
Andrew Dupont 432a9422d6 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) 2009-02-22 15:59:01 -06:00
Andrew Dupont 8fe518719e Fix Selector to match elements with attributes containing hyphens. [#285 state:resolved] (leiyou, jddalton, kangax) 2009-02-22 15:16:19 -06:00
Andrew Dupont dc9d274d89 Make sure Form.reset always returns a reference to the receiver element. [#309 state:resolved] (Phil, kangax) 2009-02-22 15:11:40 -06:00
Samuel Lebeau ceb7b72621 Avoid String#sub with empty pattern to make endless loop [#534 state:resolved]
Signed-off-by: Sam Stephenson <sam@37signals.com>
2009-02-11 10:12:28 +08:00
savetheclocktower 31d1c6fd48 Further fix to ensure Object#is(String|Number) do not throw exceptions on host objects in IE. [#510 state:resolved] 2009-01-05 10:49:09 -06:00
Andrew Dupont 9f5c40c744 Ensure Enumerable#grep can handle strings with RegExp metacharacters. [#257 state:resolved] 2008-12-19 18:50:08 -06:00
Andrew Dupont 07506e648b Fix issue where Object#isString and Object#isNumber return false for String and Number "wrapper" objects. [#375 state:resolved] 2008-12-15 20:31:18 -06:00
savetheclocktower c4f6066d2c Allow Element#store to accept an object containing several key/value pairs. 2008-12-15 09:51:16 -06:00
savetheclocktower 1ca385b18c Change Element#retrieve to return the element itself (for chaining). 2008-12-15 09:41:10 -06:00
savetheclocktower f8a25223d0 Add tests for Element#retrieve. 2008-12-15 09:37:12 -06:00
Tobie Langel 2403e3e8ce Remove useless base_test fixtures. 2008-12-15 00:46:18 +01:00
Andrew Dupont bc899339a9 Remove redundant tests from base_test.js. 2008-12-14 03:40:15 -06:00
Andrew Dupont 3b21105237 Alter event system to use new element storage API rather than have its own global hashtable. 2008-12-14 01:35:49 -06:00
Andrew Dupont 3977e66796 Added Element#store and Element#retrieve for safe, hash-backed storage of element metadata (no memory leaks). Also added Element#getStorage for working with the element's storage hash directly. Hat tip: Mootools. 2008-12-12 23:53:39 -06:00
Tobie Langel 99f74b526a Add caja_builder for optional cajoled tests. 2008-12-12 13:55:28 +01:00
Tobie Langel 52a781ae2a Switch to UnittestJS. 2008-12-11 18:01:31 +01:00
Tobie Langel 7f6b3e81a2 Overwrite Array#concat method for handling the arguments object in Opera. 2008-12-11 17:03:10 +01:00
Tobie Langel 2525b21be2 Reorganized unit tests to match the file structure of the source. 2008-12-11 12:06:00 +01:00
Andrew Dupont 54bf343560 Fix issue where Function#argumentNames returned incorrect results in IE when comments were intermixed with argument names. [#397 state:resolved] 2008-12-11 12:02:26 +01:00
Tobie Langel 26ca9c3969 Add missing var declarations in unit tests. 2008-09-08 00:48:24 -07:00