diff --git a/CHANGELOG b/CHANGELOG index be8280c..86d1a35 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +* Add tests to ensure IE8 properly assigns a class name in the `Element` constructor. [#529 state:resolved] (Riki Fridrich, Andrew Dupont) + * Remove sniffing from `Element` when detecting broken `setAttribute` in IE. [#571 state:resolved] (kangax) * Remove sniffing from `Element.update` branching in favor of feature detection. [#574 state:resolved] (kangax) diff --git a/test/unit/dom_test.js b/test/unit/dom_test.js index 4e02c5f..3b6cd57 100644 --- a/test/unit/dom_test.js +++ b/test/unit/dom_test.js @@ -1071,6 +1071,12 @@ new Test.Unit.Runner({ Element.prototype.fooBar = Prototype.emptyFunction this.assertRespondsTo('fooBar', new Element('div')); } + + elWithClassName = new Element('div', { 'className': 'firstClassName' }); + this.assert(elWithClassName.hasClassName('firstClassName')); + + elWithClassName = new Element('div', { 'class': 'firstClassName' }); + this.assert(elWithClassName.hasClassName('firstClassName')); }, testElementGetHeight: function() {