diff --git a/CHANGELOG b/CHANGELOG index f5f9f65..736ad34 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,5 @@ +* Remove another sniffing from one of DOM tests. Fixes last IE8 failure. (kangax) + * `Element.extend` now takes care of IE8 bug when HTMLAppletElement and HTMLObjectElement objects do not inherit from `Element.prototype`. (kangax) * Fix DOM tests to use proper feature test when testing `setOpacity` (kangax) diff --git a/test/unit/dom_test.js b/test/unit/dom_test.js index 3d0bac5..0fdaf9f 100644 --- a/test/unit/dom_test.js +++ b/test/unit/dom_test.js @@ -1095,8 +1095,9 @@ new Test.Unit.Runner({ {id: 'my_input_field_id', name: 'my_input_field'})); this.assertEqual(input, document.body.lastChild); this.assertEqual('my_input_field', $(document.body.lastChild).name); - if (Prototype.Browser.IE) - this.assertMatch(/name=["']?my_input_field["']?/, $('my_input_field').outerHTML); + if ('outerHTML' in document.documentElement) { + this.assertMatch(/name=["']?my_input_field["']?/, $('my_input_field_id').outerHTML); + } if (originalElement && Prototype.BrowserFeatures.ElementExtensions) { Element.prototype.fooBar = Prototype.emptyFunction