[wp-trac] [WordPress Trac] #38671: Semantic elements for non-link links: async-upload.php
WordPress Trac
noreply at wordpress.org
Mon Feb 26 20:20:40 UTC 2018
#38671: Semantic elements for non-link links: async-upload.php
-------------------------------------+-------------------------------------
Reporter: Cheffheid | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.0
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: semantic-buttons needs- | Focuses: ui, accessibility,
refresh needs-screenshots | javascript
-------------------------------------+-------------------------------------
Changes (by audrasjb):
* keywords: semantic-buttons => semantic-buttons needs-refresh needs-
screenshots
Comment:
Hello,
To clarify a bit what happens, here are the few steps to reproduce the
issue:
- Go to `wp-admin/media-new.php`, then upload a file with a not supported
MIME type.
- The alert have a "Dismiss" link and it should be a button HTML element.
The patch works, however a `type="button"` attribute is needed because
this button is not related to a form or whatever.
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-
type for further documentation.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38671#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list