Opened 9 years ago
Closed 9 years ago
#38604 closed defect (bug) (fixed)
Twenty Seventeen: Skip to content link broken in IE
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | 4.7 |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | accessibility, javascript | Cc: |
Description
In IE11 there is still the same skip to content bug.
- Start tabbing. Skip to content link gets visible.
- Hit Enter or Space and I'm moved to
#content
. - Hit Tab again and focus goes back to Skip to content link.
My best quess is that navigator.userAgent.toLowerCase().indexOf( 'msie' )
is not working for IE11 so there will be no tabindex=-1
on #content
.
I'm not sure why we even try to check different browsers. Why not just always use tabindex=-1
on #content
when clickin skip to content?
Attachments (1)
Change History (13)
This ticket was mentioned in Slack in #accessibility by sami.keijonen. View the logs.
9 years ago
#2
in reply to:
↑ description
@
9 years ago
- Component changed from Themes to Bundled Theme
- Focuses javascript added
- Keywords needs-patch added
- Milestone changed from Awaiting Review to 4.7
- Owner set to davidakennedy
- Status changed from new to assigned
#3
follow-up:
↓ 4
@
9 years ago
Because not all browsers need this fix.
Sure. My point was more like if there is no bullet proof way to detect the browser does it hurt always run the js
.
But if there is bullet proof way, let's do that.
#4
in reply to:
↑ 3
@
9 years ago
:) sniffing browsers based on their user agent string is definitely not bullet proof and one of the less reliable practices ever, but that's what we have. However, I think this fix is now necessary only for IE lte 11 unless there's the need to support old webkit versions. A concern could be Safari 9, not sure if old OS X version will get Safari 10.
#5
@
9 years ago
I think this fix is now necessary only for IE lte 11 unless there's the need to support old webkit versions. A concern could be Safari 9, not sure if old OS X version will get Safari 10.
That sounds like a good plan. Not sure if this is helpful but found this for IE .
#6
@
9 years ago
These checks works in my test for IE.
isIe = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1; isIe11 = navigator.userAgent.toLowerCase().indexOf( 'trident' ) > -1;
#7
@
9 years ago
- Keywords has-patch added; needs-patch removed
If there's consensus to check only for IE, the proposed patch could work. The removed CSS rule is redundant since there's already a more generic rule to reset outline on :focus
.
As mentioned in a previous comment, this doesn't cover Safari 9, other old webkit versions, and Opera 12.
#9
@
9 years ago
I did research today around the possibility of including the 38604.diff by @afercia.
In light of:
Global browser usage: http://caniuse.com/usage-table
And the fact Safari 10 can be used on Yosemite and El Capitan: https://9to5mac.com/2016/06/23/safari-10-for-el-capitan-and-yosemite/
I think it's safe to drop support for older versions of Webkit and other browsers. That said, this can always be added in post-release if bug reports come in. It's easier to add than remove. Plus, this is more in line with how the theme approaches SVG support too.
If anyone has strong objections, comment here and let me know.
Replying to sami.keijonen:
Because not all browsers need this fix. The script should be updated in order to account for browsers progress:
msie
for me, I guess the script should check fortrident
too