diff options
Diffstat (limited to 'test/jqLiteSpec.js')
| -rw-r--r-- | test/jqLiteSpec.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js index c06fcae4..b75289bb 100644 --- a/test/jqLiteSpec.js +++ b/test/jqLiteSpec.js @@ -168,6 +168,15 @@ describe('jqLite', function(){ var elm = jqLite('<div class="any">a</div>'); expect(elm.attr('non-existing')).toBeUndefined(); }); + + it('should special-case "class" attribute', function() { + // stupid IE9 returns null for element.getAttribute('class') when element has ng:class attr + var elm = jqLite('<div class=" any " ng:class="dynCls">a</div>'); + expect(elm.attr('class')).toBe(' any '); + + elm.attr('class', 'foo bar'); + expect(elm.attr('class')).toBe('foo bar'); + }); }); |
