From 811fb8628683e9936c39b6f33ec7a27f60918768 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Fri, 9 Mar 2007 19:17:50 +0000 Subject: [PATCH] prototype: 1.5.1_rc1: Fix readAttribute for IE7. --- CHANGELOG | 4 ++++ Rakefile | 2 +- src/dom.js | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index a1d844e..d0f368c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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] diff --git a/Rakefile b/Rakefile index 843780a..fe59be5 100644 --- a/Rakefile +++ b/Rakefile @@ -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] diff --git a/src/dom.js b/src/dom.js index 1df63c2..f89b7d4 100644 --- a/src/dom.js +++ b/src/dom.js @@ -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];