diff options
| author | Misko Hevery | 2012-03-19 12:20:57 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2012-03-19 15:49:42 -0700 | 
| commit | 1cc0e4173de01d6c4103910d231a24b2834f4d91 (patch) | |
| tree | 076fcf51827a4dc8161959de8944a72dff4d0bcf /test/jqLiteSpec.js | |
| parent | d4ae7988dad88af608db9cf34992c9c748eda6aa (diff) | |
| download | angular.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 'test/jqLiteSpec.js')
| -rw-r--r-- | test/jqLiteSpec.js | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js index 417b912c..fbe6edcb 100644 --- a/test/jqLiteSpec.js +++ b/test/jqLiteSpec.js @@ -268,6 +268,13 @@ describe('jqLite', function() {        var elm = jqLite('<div class="any">a</div>');        expect(elm.attr('non-existing')).toBeUndefined();      }); + +    it('should return undefined for non-existing attributes on input', function() { +      var elm = jqLite('<input>'); +      expect(elm.attr('readonly')).toBeUndefined(); +      expect(elm.attr('readOnly')).toBeUndefined(); +      expect(elm.attr('disabled')).toBeUndefined(); +    });    }); | 
