[wp-trac] [WordPress Trac] #36735: Add media, insert from URL and alt attribute
WordPress Trac
noreply at wordpress.org
Mon May 2 18:01:04 UTC 2016
#36735: Add media, insert from URL and alt attribute
---------------------------+-----------------------------
Reporter: afercia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Keywords: needs-patch
Focuses: accessibility |
---------------------------+-----------------------------
When inserting an image using "Insert from URL" in the media modal, an alt
attribute should be always inserted in the HTML. When users fill out the
"Alt Text" field, the alt attribute is correctly inserted.
But when they leave the field empty, no alt attribute is inserted, not
even an empty one. The resulting markup would be something like:
{{{
<img class="alignnone" src="https://cldup.com/YeRLlgnhxd.png" width="1195"
height="249" />
}}}
and in this case an `alt=""` should be automatically added.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36735>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list