prototype: 1.5.1_rc1: Fix readAttribute for IE7.

This commit is contained in:
Sam Stephenson 2007-03-09 19:17:50 +00:00
parent 94cfdd3e47
commit 811fb86286
3 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
*1.5.1_rc1* (March 9, 2007)
* Fix readAttribute for IE7. [Andrew Dupont]
*1.5.1_rc0* (March 8, 2007)
* Merge the selector branch into trunk, bringing vast performance improvements, bug fixes, and near-complete CSS3 compliance to $$ and Selector. Closes #7568. [Andrew Dupont]

View File

@ -5,7 +5,7 @@ PROTOTYPE_ROOT = File.expand_path(File.dirname(__FILE__))
PROTOTYPE_SRC_DIR = File.join(PROTOTYPE_ROOT, 'src')
PROTOTYPE_DIST_DIR = File.join(PROTOTYPE_ROOT, 'dist')
PROTOTYPE_PKG_DIR = File.join(PROTOTYPE_ROOT, 'pkg')
PROTOTYPE_VERSION = '1.5.1_rc0'
PROTOTYPE_VERSION = '1.5.1_rc1'
task :default => [:dist, :package, :clean_package_source]

View File

@ -214,6 +214,7 @@ Element.Methods = {
readAttribute: function(element, name) {
element = $(element);
if (Prototype.Browser.IE) {
if (!element.attributes) return null;
var t = Element._attributeTranslations;
if (t.values[name]) return t.values[name](element, name);
if (t.names[name]) name = t.names[name];