From b57ea83222eadb3996ae4d212823cd7a620ce801 Mon Sep 17 00:00:00 2001 From: Tobie Langel Date: Wed, 22 Jul 2009 01:10:04 +0200 Subject: [PATCH] Remove redundant if statement in Element#readAttribute. --- src/dom/dom.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/dom/dom.js b/src/dom/dom.js index 9bfaee6..ef84be7 100644 --- a/src/dom/dom.js +++ b/src/dom/dom.js @@ -596,11 +596,6 @@ Element.Methods = { readAttribute: function(element, name) { element = $(element); if (Prototype.Browser.IE) { - // Circumvent issue in IE that causes crash. - if (name === 'type' && - element.tagName.toUpperCase() == 'IFRAME') { - return element.getAttribute('type'); - } var t = Element._attributeTranslations.read; if (t.values[name]) return t.values[name](element, name); if (t.names[name]) name = t.names[name];