[wp-trac] [WordPress Trac] #36735: Add media, insert from URL and alt attribute

WordPress Trac noreply at wordpress.org
Sat Jul 16 02:06:45 UTC 2016

#36735: Add media, insert from URL and alt attribute
 Reporter:  afercia                   |       Owner:  joemcgill
     Type:  defect (bug)              |      Status:  reopened
 Priority:  normal                    |   Milestone:  4.6
Component:  Media                     |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:  accessibility

Comment (by adamsilverstein):

 @joemcgill thanks for the quick fix here, I was looking at this ticket
 today with @afineman and wondering if in `wp.html.string` we should be
 inserting as the comment calls it 'empty attribute notation' for any

 Googling the alt tag specifically, I clearly see that it should be a blank
 string and not just `alt` with no value... my question is: is it ever
 proper HTML syntax to insert an attribute without a value, ie. `attribute`
 vs. `attribute=""`?

Ticket URL: <https://core.trac.wordpress.org/ticket/36735#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list