From bb49bd794bc8ea4238162725b518fb46234f3cf9 Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski-Owczarek Date: Wed, 1 May 2024 00:54:19 +0200 Subject: All: Drop support for IE & some other browsers (but mostly IE) Closes gh-2249 --- tests/lib/qunit-assert-domequal.js | 11 ----------- tests/lib/vendor/qunit-composite/qunit-composite.js | 3 --- 2 files changed, 14 deletions(-) (limited to 'tests/lib') diff --git a/tests/lib/qunit-assert-domequal.js b/tests/lib/qunit-assert-domequal.js index bcce60702..d99ed06de 100644 --- a/tests/lib/qunit-assert-domequal.js +++ b/tests/lib/qunit-assert-domequal.js @@ -83,17 +83,6 @@ function getElementStyles( elem ) { key = style[ len ]; camelKey = camelCase( key ); - // Support: IE <=11+ - // In IE, `option` elements may have different initial `option` colors. - // They may initially all be transparent, but later the selected - // option gets a blue background with white text; ignore it. - if ( document.documentMode && elem.nodeName.toLowerCase() === "option" && ( - camelKey === "color" || - camelKey.indexOf( "Color" ) === camelKey.length - "Color".length - ) ) { - continue; - } - if ( typeof style[ key ] === "string" ) { styles[ camelKey ] = style[ key ]; } diff --git a/tests/lib/vendor/qunit-composite/qunit-composite.js b/tests/lib/vendor/qunit-composite/qunit-composite.js index 042d024b4..b3c2b749d 100644 --- a/tests/lib/vendor/qunit-composite/qunit-composite.js +++ b/tests/lib/vendor/qunit-composite/qunit-composite.js @@ -35,9 +35,6 @@ function addEvent( elem, type, fn ) { if ( elem.addEventListener ) { // Standards-based browsers elem.addEventListener( type, fn, false ); - } else if ( elem.attachEvent ) { - // support: IE <9 - elem.attachEvent( "on" + type, fn ); } } -- cgit v1.2.3