File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -591,18 +591,28 @@ class Player extends Component {
591
591
592
592
// set tabindex to -1 to remove the video element from the focus order
593
593
tag . setAttribute ( 'tabindex' , '-1' ) ;
594
+ attrs . tabindex = '-1' ;
595
+
594
596
// Workaround for #4583 (JAWS+IE doesn't announce BPB or play button)
595
597
// See https://github.com/FreedomScientific/VFO-standards-support/issues/78
596
598
// Note that we can't detect if JAWS is being used, but this ARIA attribute
597
599
// doesn't change behavior of IE11 if JAWS is not being used
598
600
if ( IE_VERSION ) {
599
601
tag . setAttribute ( 'role' , 'application' ) ;
602
+ attrs . role = 'application' ;
600
603
}
601
604
602
605
// Remove width/height attrs from tag so CSS can make it 100% width/height
603
606
tag . removeAttribute ( 'width' ) ;
604
607
tag . removeAttribute ( 'height' ) ;
605
608
609
+ if ( 'width' in attrs ) {
610
+ delete attrs . width ;
611
+ }
612
+ if ( 'height' in attrs ) {
613
+ delete attrs . height ;
614
+ }
615
+
606
616
Object . getOwnPropertyNames ( attrs ) . forEach ( function ( attr ) {
607
617
// don't copy over the class attribute to the player element when we're in a div embed
608
618
// the class is already set up properly in the divEmbed case
You can’t perform that action at this time.
0 commit comments