From dee8a1010c9daeb319836d28f02d5d40ca47e9da Mon Sep 17 00:00:00 2001 From: Juriy Zaytsev Date: Sat, 21 Mar 2009 22:23:14 -0400 Subject: [PATCH] Fix faulty DOM test. --- CHANGELOG | 2 ++ test/unit/dom_test.js | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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