Ticket #36289: 36289.patch
File 36289.patch, 731 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/js/wp-a11y.js
4 4 'use strict'; 5 5 6 6 var $containerPolite, 7 $containerAssertive, 8 role; 7 $containerAssertive; 9 8 10 9 /** 11 10 * Update the ARIA live notification area text node. … … 39 38 */ 40 39 function addContainer( ariaLive ) { 41 40 ariaLive = ariaLive || 'polite'; 42 role = 'assertive' === ariaLive ? 'alert' : 'status';43 41 44 42 var $container = $( '<div>', { 45 43 'id': 'wp-a11y-speak-' + ariaLive, 46 'role': role,47 44 'aria-live': ariaLive, 48 45 'aria-relevant': 'additions text', 49 46 'aria-atomic': 'true',