From 8f697f3e85aff85d121868261588dae6551821b1 Mon Sep 17 00:00:00 2001 From: Andrew Dupont Date: Sun, 8 Mar 2009 20:27:38 -0500 Subject: [PATCH] Add tests to ensure IE8 properly assigns a class name in the `Element` constructor. [#529 state:resolved] (Riki Fridrich, Andrew Dupont) --- CHANGELOG | 2 ++ test/unit/dom_test.js | 6 ++++++ 2 files changed, 8 insertions(+) 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() {