Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- when an input element is cloned in IE, skip cloning of the width a…

…nd height attributes since they are a. nonsensical, and b. invalid. fixes #875

git-svn-id: http://svn.mootools.net/trunk@1552 4db308c1-fb21-0410-9919-de62e267375e
  • Loading branch information...
commit 9d7e49beb0d7030f2ce2296bc63dbf06b7b412df 1 parent 93897cf
tomocchino authored subtleGradient committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  Source/Element/Element.js
View
1  Source/Element/Element.js
@@ -347,6 +347,7 @@ Element.implement({
var attributes = {};
for (var j = 0, l = this.attributes.length; j < l; j++){
var attribute = this.attributes[j], key = attribute.nodeName.toLowerCase();
+ if (Browser.Engine.trident && (/input/i).test(this.tagName) && (/width|height/).test(key)) continue;
var value = (key == 'style' && this.style) ? this.style.cssText : attribute.nodeValue;
if (!$chk(value) || key == 'uid' || (key == 'id' && !keepid)) continue;
if (value != 'inherit' && ['string', 'number'].contains($type(value))) attributes[key] = value;
Please sign in to comment.
Something went wrong with that request. Please try again.