Make WordPress Core

Changeset 40021


Ignore:
Timestamp:
01/27/2017 06:32:00 PM (7 years ago)
Author:
afercia
Message:

Accessibility: Make the inline uploader button a real button.

See wp.media.view.UploaderWindow.

Fixes #39305.

Location:
trunk/src/wp-includes/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-views.js

    r38795 r40021  
    83868386        var uploader;
    83878387
    8388         this.$browser = $('<a href="#" class="browser" />').hide().appendTo('body');
     8388        this.$browser = $( '<button type="button" class="browser" />' ).hide().appendTo( 'body' );
    83898389
    83908390        uploader = this.options.uploader = _.defaults( this.options.uploader || {}, {
  • trunk/src/wp-includes/js/media/views/uploader/window.js

    r33337 r40021  
    2626        var uploader;
    2727
    28         this.$browser = $('<a href="#" class="browser" />').hide().appendTo('body');
     28        this.$browser = $( '<button type="button" class="browser" />' ).hide().appendTo( 'body' );
    2929
    3030        uploader = this.options.uploader = _.defaults( this.options.uploader || {}, {
Note: See TracChangeset for help on using the changeset viewer.