Commit Graph

407 Commits

Author SHA1 Message Date
Tobie Langel b214744a5d Greatly simplify String#(un)escapeHTML and remove their DOM dependencies. 2009-08-12 01:27:10 +02:00
Tobie Langel b57ea83222 Remove redundant if statement in Element#readAttribute. 2009-08-12 01:23:47 +02:00
Tobie Langel d88aef3a55 Add missing semicolons. [#751 state:resolved] 2009-07-30 02:16:39 +02:00
Juriy Zaytsev 41b034b93b Improve `getClass` performance. [#747 state:resolved] 2009-07-29 15:04:39 +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
Samuel Lebeau fe388ebca5 Replace calls to String#gsub by String#replace internally, be more specific about which version of Safari is supported 2009-07-21 17:52:43 +02:00
Tobie Langel 49090bc957 Workaround IE's defficient handling of finally statements in PeriodicalExecuter. [#696 state:resolved] 2009-07-21 17:19:46 +02:00
Andrew Dupont e41ccba6d8 Re-throw error in otherwise-empty `catch` clause so that `PeriodicalExecuter` does not suppress exceptions. [#696 state:resolved] (Samuel Lebeau) 2009-07-18 18:51:16 +02:00
Andrew Dupont 059ce21040 Proper fix (and unit tests) for selector escaping issue. 2009-07-17 12:13:47 +02:00
Andrew Dupont f4570f39d7 Fix issue related to escaping of selectors for querySelectorAll. [#559 state:resolved] 2009-07-13 14:12:18 +02:00
Andrew Dupont 39f045d240 Rollback IFRAME error "feature test" for IE. Fix it another way. 2009-07-13 13:52:54 +02:00
Andrew Dupont 4586adff0b Bump version number. 2009-06-16 16:37:50 -05:00
Andrew Dupont 16b69a2ebf Update inline documentation. 2009-06-13 19:27:22 -05:00
Tobie Langel ad89bfb738 Fixed a variety of non-ASCII chars and similar [#610 state:resolved] 2009-06-11 22:48:38 +02:00
Juriy Zaytsev f50dc3639d No need to recreate `subclass` function every time inheritance is being set up in `Class.create` 2009-06-10 18:32:48 -04:00
Juriy Zaytsev 78f6fad570 Simplify snippet of `_insertionTranslations.tags` extension. 2009-06-04 23:18:28 -05: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 703e988745 Replace array creation and `Array#include` with a more efficient `RegExp#test` 2009-06-04 23:07:41 -05:00
Juriy Zaytsev 7d02aef6ca Reorganize the way `ElementExtensions` are defined. Make sure elements used in SpecificElementExtensions are cleaned up. 2009-06-04 23:01:47 -05:00
Juriy Zaytsev fa4314aeea No need to overengineer. 2009-06-04 22:59:54 -05:00
Andrew Dupont 1b20386115 Minor PDoc changes. 2009-06-04 22:56:55 -05:00
Andrew Dupont 269653fd38 Fix typo in selector.js. 2009-06-01 16:25:32 -05:00
Juriy Zaytsev 31fe0a0328 Make sure $A works with primitive values. 2009-05-15 22:05:53 -05:00
Juriy Zaytsev cebf7d673b Do not browser sniff when forking `unmark` function in selector suite. Instead use a proper test - PROPERTIES_ATTRIBUTES_MAP. 2009-05-15 22:04:21 -05:00
Juriy Zaytsev 74374347c1 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. 2009-05-15 22:02:51 -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
Juriy Zaytsev cb729625ae Use native `String.prototype.trim` in `String.prototype.trim` when available. (kangax) 2009-05-11 23:23:13 -05:00
Andrew Dupont 005f066f1a Fix typo in event.js. 2009-05-02 13:41:10 -05:00
Andrew Dupont 7bf8bd415f Fix accidental backtick escape. 2009-04-03 12:52:45 -05:00
Juriy Zaytsev c480bd7b97 Do not sniff when testing for IE's proprietary mouseenter/mouseleave events support. Use more robust inference instead. 2009-03-28 19:45:33 -04:00
Andrew Dupont fd46f6bbcf Bump version number. 2009-03-27 17:59:59 -05:00
Juriy Zaytsev 6c38d84254 Revert Opera title fix 2009-03-25 01:19:28 -04:00
Juriy Zaytsev 63bb172663 Fix erroneous `readAttribute` test. 2009-03-25 00:47:54 -04:00
Juriy Zaytsev b35ebeb135 Avoid creation of element, use document.documentElement instead 2009-03-24 23:43:08 -04:00
Juriy Zaytsev 3e3b470009 Use feature testing in `Element#readAttribute` when taking care of Opera's `getAttribute('title')` quirk 2009-03-24 23:33:17 -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 fa15f212fa Fix `escapeHTML` in Chrome by using a more strict check. 2009-03-22 01:12:45 -04:00
Juriy Zaytsev 0e63247604 Make `Element.extend` take care of IE8 HTMLAppletElement and HTMLObjectElement objects bug. 2009-03-21 22:10:03 -04:00
Andrew Dupont 9bb8fbf2ff Merge branch 'master' of git@github.com:sstephenson/prototype 2009-03-20 19:44:11 -05:00
Juriy Zaytsev 06068431f7 Fix for/htmlFor translation in IE8 2009-03-20 18:08:34 -04:00
Juriy Zaytsev 30c1935cdb Fix `writeAttribute` and `readAttribute` failures in IE8. Use proper feature testing when taking care of getAttribute/setAttribute glitches. 2009-03-20 17:33:56 -04:00
Juriy Zaytsev b34355653e Remove Array#reduce [#569 state:resolved] 2009-03-20 12:05:02 -04:00
Andrew Dupont deeb3bbd88 PDoc changes. 2009-03-20 05:46:53 -05:00
Juriy Zaytsev c7a5d3480e Make sure try/catch/finally is used instead of try/finally [#421 state:resolved] 2009-03-19 16:47:07 -04:00
Juriy Zaytsev 1a375daea2 Remove sniffing from `$A` by using `in` operator when accessing property of a nodelist. 2009-03-19 16:22:37 -04:00
Andrew Dupont fa12b00111 Remove sniffing from `Element` when detecting broken `setAttribute` in IE. [#571 state:resolved] (kangax) 2009-03-08 18:18:55 -05:00