aboutsummaryrefslogtreecommitdiffstats
path: root/src/jqLite.js
diff options
context:
space:
mode:
authorMisko Hevery2012-03-19 12:20:57 -0700
committerMisko Hevery2012-03-19 15:49:42 -0700
commit1cc0e4173de01d6c4103910d231a24b2834f4d91 (patch)
tree076fcf51827a4dc8161959de8944a72dff4d0bcf /src/jqLite.js
parentd4ae7988dad88af608db9cf34992c9c748eda6aa (diff)
downloadangular.js-1cc0e4173de01d6c4103910d231a24b2834f4d91.tar.bz2
bug(ie7): incorrectly set all inputs to disabled
In ie7 all of the input fields are set to readonly and disabled, because ie7 enumerates over all attributes even if the are not declared on the element.
Diffstat (limited to 'src/jqLite.js')
-rw-r--r--src/jqLite.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index 986d0002..79f22e62 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -328,7 +328,7 @@ forEach('multiple,selected,checked,disabled,readOnly,required'.split(','), funct
BOOLEAN_ATTR[lowercase(value)] = value;
});
var BOOLEAN_ELEMENTS = {};
-forEach('input,select,option,textarea,button'.split(','), function(value) {
+forEach('input,select,option,textarea,button,form'.split(','), function(value) {
BOOLEAN_ELEMENTS[uppercase(value)] = true;
});
@@ -394,8 +394,7 @@ forEach({
}
} else {
return (element[name] ||
- element.getAttribute(name) !== null &&
- (msie < 9 ? element.getAttribute(name) !== '' : true))
+ (element.attributes.getNamedItem(name)|| noop).specified)
? lowercasedName
: undefined;
}