Skip to content

Commit 6e8eba1

Browse files
committed
Twenty Twenty One: Remove Skiplink shim for Internet Explorer.
No version of Internet Explorer is still supported by WordPress or Microsoft. Usage of Internet Explorer has dropped to about 0.1%. Follow up to [61628] to also remove JS that fixed skip link behavior for IE. Also remove overlooked contents of `ie-editor.css.map`. Props sabernhardt, westonruter, joedolson. Fixes #64590. git-svn-id: https://develop.svn.wordpress.org/trunk@61635 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7b3ea1a commit 6e8eba1

3 files changed

Lines changed: 8 additions & 53 deletions

File tree

src/wp-content/themes/twentytwentyone/assets/css/ie-editor.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1 @@
1-
/**
2-
* File skip-link-focus-fix.js.
3-
*
4-
* Helps with accessibility for keyboard only users.
5-
*
6-
* This is the source file for what is minified in the twenty_twenty_one_skip_link_focus_fix() PHP function.
7-
*
8-
* Learn more: https://git.io/vWdr2
9-
*
10-
* @since Twenty Twenty-One 1.0
11-
*/
12-
( function() {
13-
var isIe = /(trident|msie)/i.test( navigator.userAgent );
14-
15-
if ( isIe && document.getElementById && window.addEventListener ) {
16-
window.addEventListener( 'hashchange', function() {
17-
var id = location.hash.substring( 1 ),
18-
element;
19-
20-
if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
21-
return;
22-
}
23-
24-
element = document.getElementById( id );
25-
26-
if ( element ) {
27-
if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
28-
element.tabIndex = -1;
29-
}
30-
31-
element.focus();
32-
}
33-
}, false );
34-
}
35-
}() );
1+
// Internet Explorer support was removed.

0 commit comments

Comments
 (0)