Skip to content

Commit

Permalink
Add tests to ensure IE8 properly assigns a class name in the `Element…
Browse files Browse the repository at this point in the history
…` constructor. [#529 state:resolved] (Riki Fridrich, Andrew Dupont)
  • Loading branch information
savetheclocktower committed Mar 9, 2009
1 parent fa12b00 commit 8f697f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
6 changes: 6 additions & 0 deletions test/unit/dom_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 8f697f3

Please sign in to comment.