Add tests to ensure IE8 properly assigns a class name in the `Element` constructor. [#529 state:resolved] (Riki Fridrich, Andrew Dupont)
This commit is contained in:
parent
fa12b00111
commit
8f697f3e85
|
@ -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)
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue