[wp-trac] [WordPress Trac] #51846: The "alt" attribute missing on the image tag

WordPress Trac noreply at wordpress.org
Fri Jan 8 16:54:05 UTC 2021


#51846: The "alt" attribute missing on the image tag
----------------------------+----------------------------------------------
 Reporter:  Laxman          |       Owner:  audrasjb
  Prajapati                 |
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  5.7
Component:  Customize       |     Version:
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:  accessibility, coding-standards
  commit                    |
----------------------------+----------------------------------------------
Changes (by SergeyBiryukov):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49949" 49949]:
 {{{
 #!CommitTicketReference repository="" revision="49949"
 Accessibility: Customize: Add an empty `alt` attribute to the `<img>` tag
 used as a hidden placeholder in the Customizer preview when no logo is
 chosen.

 Per accessibility best practices, it is recommended that all HTML `<img>`
 elements have an `alt` attribute. Any decorative images should have an
 empty `alt` attribute (`alt=""`).

 Props laxman-prajapati, sabernhardt, audrasjb.
 Fixes #51846.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51846#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list