[wp-trac] [WordPress Trac] #40331: The placeholder attribute should not be used as a replacement for a label

WordPress Trac noreply at wordpress.org
Sat Nov 4 00:49:31 UTC 2023


#40331: The placeholder attribute should not be used as a replacement for a label
---------------------------------------+--------------------------------
 Reporter:  afercia                    |       Owner:  joedolson
     Type:  defect (bug)               |      Status:  accepted
 Priority:  normal                     |   Milestone:  6.5
Component:  Administration             |     Version:
 Severity:  normal                     |  Resolution:
 Keywords:  has-screenshots a11y-task  |     Focuses:  ui, accessibility
---------------------------------------+--------------------------------

Comment (by joedolson):

 After a quick scour for placeholders, I find a few occurrences:

  - Search fields in add new plugins, search installed plugins, and media
 library in grid view
  - The link UI in the classic editor/visual view
  - Several in the customizer: search menu items, add new page/post, search
 widgets, search themes
  - Examples in themes & the general search template, which I don't think
 we should change
  - Examples in `media-template.php`. I'm not sure how those are being
 used, however. They start at https://github.com/WordPress/wordpress-
 develop/blob/0ac7b38407a880ce350616d8f1de9a14b178d1ab/src/wp-includes
 /media-template.php#L641

 The other easily found instances of the placeholder attribute are
 legitimate. There may be more, but they may be harder to find.

 Patches in progress.

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


More information about the wp-trac mailing list