[wp-trac] [WordPress Trac] #47318: Fix the placeholder for the post title field on the classic Edit Post screen

WordPress Trac noreply at wordpress.org
Sat Sep 28 16:30:30 UTC 2019


#47318: Fix the placeholder for the post title field on the classic Edit Post
screen
---------------------------------------+----------------------------
 Reporter:  azaozz                     |       Owner:  azaozz
     Type:  defect (bug)               |      Status:  closed
 Priority:  normal                     |   Milestone:  5.3
Component:  Administration             |     Version:
 Severity:  minor                      |  Resolution:  fixed
 Keywords:  has-screenshots has-patch  |     Focuses:  accessibility
---------------------------------------+----------------------------

Comment (by afercia):

 > Does that mean placeholder attributes are "semantically incorrect"
 feature that we should never use? :)

 @azaozz that means placeholder should ''never'' be used as replacement for
 labels :)

 They must only be used for a short hint for a sample value or a brief
 description of the expected format. Outside of that usage: yes, they're
 semantically incorrect.

 - see the HTML spec (currently HTML 5.2): https://www.w3.org/TR/html52
 /sec-forms.html#the-placeholder-attribute (see also the big warning box
 there)
 - see #40331
 - see the WPCampus report on #47138: any improper use of the `placeholder`
 attribute will always be flagged as a compliance failure

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


More information about the wp-trac mailing list