WordPress/wp-includes/js
Andrea Fercia 1f3d583825 Accessibility: Media: Improve the search media field labelling.
Visible `<label>` elements benefit all users. The `placeholder` attribute should not be used as a replacement for visible labels.
Instead, it's supposed to be used only for a short hint to aid users with data entry e.g. a sample value or a brief description of the expected format.

Screen readers may not announce a `placeholder` attribute at all. Other users may suffer from the lack of a visible label and a placeholder used as replacement, for example:

- users with cognitive disabilities may have trouble remembering what the filled field does
- speech recognition users cannot see the name they can speak to set focus on the field
- low-vision users with high text-size may not be able to see the whole placeholder even when it's visible, if its value is clipped by the edge of the input

Props anevins, audrasjb, karmatosed, azaozz, SergeyBiryukov, afercia.
See #40331.
Fixes #47138.

Built from https://develop.svn.wordpress.org/trunk@46418


git-svn-id: http://core.svn.wordpress.org/trunk@46216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-10-07 12:43:03 +00:00
..
codemirror Remove JSHint due to license compatibility 2018-01-23 01:29:32 +00:00
crop
dist Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
imgareaselect Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
jcrop
jquery Build/Test: Update Grunt Uglify options 2019-10-05 22:01:04 +00:00
mediaelement Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
plupload Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
swfupload Remove SWFUpload, 2017-09-21 16:35:48 +00:00
thickbox Administration: Thickbox: Fix conflicts with the Plugin details and native Thickbox modals. 2017-09-09 14:14:43 +00:00
tinymce Build/Test: Update Grunt Uglify options 2019-10-05 22:01:04 +00:00
admin-bar.js Toolbar: Check if `obj` is set before using it. 2018-08-06 19:33:28 +00:00
admin-bar.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
api-request.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
api-request.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
autosave.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
autosave.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
backbone.js External Libraries: Update Backbone.js to 1.4.0. 2019-09-17 17:19:54 +00:00
backbone.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
clipboard.js Site Health: Improve the "Copy to clipboard" button. 2019-03-27 22:31:52 +00:00
clipboard.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
colorpicker.js
colorpicker.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
comment-reply.js Coding Standards: Fix JSHint error in [45790]. 2019-08-14 00:02:55 +00:00
comment-reply.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
customize-base.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
customize-base.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
customize-loader.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
customize-loader.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
customize-models.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
customize-models.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
customize-preview-nav-menus.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
customize-preview-nav-menus.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
customize-preview-widgets.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
customize-preview-widgets.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
customize-preview.js Customiser: Prevent JS errors when previewing pages with an `<area>` tag. 2019-01-21 23:03:50 +00:00
customize-preview.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
customize-selective-refresh.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
customize-selective-refresh.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
customize-views.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
customize-views.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
heartbeat.js Block Editor: Refresh nonces used by `wp.apiFetch`. 2018-12-17 19:28:51 +00:00
heartbeat.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
hoverIntent.js Once upon a midnight dreary, while I coded, weak and weary, 2018-05-23 10:05:31 +00:00
hoverIntent.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
imagesloaded.min.js Once upon a midnight dreary, while I coded, weak and weary, 2018-05-23 10:05:31 +00:00
json2.js
json2.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
masonry.min.js Once upon a midnight dreary, while I coded, weak and weary, 2018-05-23 10:05:31 +00:00
mce-view.js TinyMCE: fix adding of too many undo levels for wpviews. The HTML changes several times when a wpview is added. We only want one undo level. Also fixes cases when the cursor is next to an embeddable URL in the Text tab and the user switches to the Visual tab. 2019-07-12 03:25:55 +00:00
mce-view.min.js Build/Test: Update Grunt Uglify options 2019-10-05 22:01:04 +00:00
media-audiovideo.js External Libraries: Update Backbone.js to 1.4.0. 2019-09-17 17:19:54 +00:00
media-audiovideo.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
media-editor.js Docs: Correct and improve various inline documentation. 2018-08-27 14:28:26 +00:00
media-editor.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
media-grid.js Accessibility: Media: Improve the search media field labelling. 2019-10-07 12:43:03 +00:00
media-grid.min.js Accessibility: Media: Improve the search media field labelling. 2019-10-07 12:43:03 +00:00
media-models.js Accessibility: Media: Make screen readers announce the Media search results. 2019-09-23 12:19:56 +00:00
media-models.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
media-views.js Accessibility: Media: Improve the search media field labelling. 2019-10-07 12:43:03 +00:00
media-views.min.js Accessibility: Media: Improve the search media field labelling. 2019-10-07 12:43:03 +00:00
quicktags.js Reorder `quicktags.js` a bit to account for the order of defining vars and functions after [43577]. 2018-08-20 13:34:25 +00:00
quicktags.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
shortcode.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
shortcode.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
swfobject.js
tw-sack.js
tw-sack.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
twemoji.js Emoji: Upgrade Twemoji to 12.1.2. 2019-08-08 04:05:55 +00:00
twemoji.min.js Build/Test: Update Grunt Uglify options 2019-10-05 22:01:04 +00:00
underscore.js External Libraries: Revert [46092] pending test failure investigation. 2019-09-12 10:19:59 +00:00
underscore.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
utils.js General: Explicitly assigns all JS globals to the window. 2018-08-19 13:33:24 +00:00
utils.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
wp-ajax-response.js General: Explicitly assigns all JS globals to the window. 2018-08-19 13:33:24 +00:00
wp-ajax-response.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
wp-api.js REST API: generate a valid fallback URI in wp.api.utils.getRootURL. 2018-08-11 18:51:24 +00:00
wp-api.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
wp-auth-check.js Docs: Improve JSDoc for `auth-check.js`. 2018-06-28 02:33:38 +00:00
wp-auth-check.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
wp-backbone.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
wp-backbone.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
wp-custom-header.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
wp-custom-header.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
wp-embed-template.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
wp-embed-template.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
wp-embed.js Embeds: After [43593], move the new check to a separate line to avoid `test_js_no_ampersands_in_compiled` failure caused by UglifyJS task. 2018-08-30 12:40:26 +00:00
wp-embed.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
wp-emoji-loader.js Emoji: Upgrade Twemoji to 12.1.2. 2019-08-08 04:05:55 +00:00
wp-emoji-loader.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
wp-emoji-release.min.js Build/Test: Update Grunt Uglify options 2019-10-05 22:01:04 +00:00
wp-emoji.js Emoji: Revert [46393] pending test failure investigation. 2019-10-05 01:01:00 +00:00
wp-emoji.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
wp-list-revisions.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
wp-list-revisions.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
wp-lists.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
wp-lists.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
wp-pointer.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
wp-pointer.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
wp-sanitize.js Update wp.a11y.speak() to sanitize HTML before display. 2019-09-04 17:13:21 +00:00
wp-sanitize.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
wp-util.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
wp-util.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
wpdialog.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
wpdialog.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
wplink.js TinyMCE Classic Block: Remove unused variable. 2019-01-26 12:59:49 +00:00
wplink.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
zxcvbn-async.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
zxcvbn-async.min.js Build/Test: Bump devDependencies for WordPress 5.3 2019-10-05 19:49:10 +00:00
zxcvbn.min.js External Libraries: zxcvbn library. 2018-12-20 21:03:49 +00:00