From 1886b03d60157989f531d6c267dd2aea2a529b1b Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Sat, 28 Apr 2007 02:23:26 +0000 Subject: [PATCH] prototype: Fix Element#readAttribute to work with the 'type' attribute in IE. Closes #8160. --- CHANGELOG | 6 +++++- src/dom.js | 1 + test/unit/dom.html | 6 +++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index d8849a0..d7f464c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,8 @@ -*1.5.1_rc3 (April 24, 2007)* +*SVN* + +* Fix Element#readAttribute to work with the 'type' attribute in IE. Closes #8160. [Tobie Langel, Wiktor Ihárosi] + +*1.5.1_rc3* (April 24, 2007) * Add Element#childElements as an alias for Element#immediateDescendants. [Tobie Langel] diff --git a/src/dom.js b/src/dom.js index 5f07e88..a0fb444 100644 --- a/src/dom.js +++ b/src/dom.js @@ -551,6 +551,7 @@ Element._attributeTranslations = { Object.extend(this, { href: this._getAttr, src: this._getAttr, + type: this._getAttr, disabled: this._flag, checked: this._flag, readonly: this._flag, diff --git a/test/unit/dom.html b/test/unit/dom.html index da3dbf8..2338cb5 100644 --- a/test/unit/dom.html +++ b/test/unit/dom.html @@ -216,6 +216,7 @@ +