Changeset 40479
- Timestamp:
- 04/19/2017 07:53:00 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/wp-a11y.js
r38115 r40479 5 5 6 6 var $containerPolite, 7 $containerAssertive; 7 $containerAssertive, 8 previousMessage = ''; 8 9 9 10 /** … … 23 24 // Ensure only text is sent to screen readers. 24 25 message = $( '<p>' ).html( message ).text(); 26 27 /* 28 * Safari 10+VoiceOver don't announce repeated, identical strings. We use 29 * a `no-break space` to force them to think identical strings are different. 30 * See ticket #36853. 31 */ 32 if ( previousMessage === message ) { 33 message = message + '\u00A0'; 34 } 35 36 previousMessage = message; 25 37 26 38 if ( $containerAssertive && 'assertive' === ariaLive ) {
Note: See TracChangeset
for help on using the changeset viewer.