~canonical-sysadmins/wordpress/4.9.1

« back to all changes in this revision

Viewing changes to wp-includes/js/wp-a11y.js

  • Committer: Barry Price
  • Date: 2017-11-17 04:49:02 UTC
  • mfrom: (1.1.30 upstream)
  • Revision ID: barry.price@canonical.com-20171117044902-5frux4ycbq6g9fyf
Merge WP4.9 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** @namespace wp */
1
2
window.wp = window.wp || {};
2
3
 
3
4
( function ( wp, $ ) {
13
14
         * @since 4.2.0
14
15
         * @since 4.3.0 Introduced the 'ariaLive' argument.
15
16
         *
16
 
         * @param {String} message  The message to be announced by Assistive Technologies.
17
 
         * @param {String} ariaLive Optional. The politeness level for aria-live. Possible values:
18
 
         *                          polite or assertive. Default polite.
 
17
         * @param {String} message    The message to be announced by Assistive Technologies.
 
18
         * @param {String} [ariaLive] The politeness level for aria-live. Possible values:
 
19
         *                            polite or assertive. Default polite.
 
20
         * @returns {void}
19
21
         */
20
22
        function speak( message, ariaLive ) {
21
23
                // Clear previous messages to allow repeated strings being read out.
94
96
                }
95
97
        });
96
98
 
 
99
        /** @namespace wp.a11y */
97
100
        wp.a11y = wp.a11y || {};
98
101
        wp.a11y.speak = speak;
99
102