[wp-trac] [WordPress Trac] #40462: Add placeholders to wp_login_form()

WordPress Trac noreply at wordpress.org
Thu Sep 28 06:53:53 UTC 2017


#40462: Add placeholders to wp_login_form()
------------------------------------+--------------------------------------
 Reporter:  ramiy                   |       Owner:  voldemortensen
     Type:  enhancement             |      Status:  accepted
 Priority:  normal                  |   Milestone:  4.9
Component:  Login and Registration  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch commit        |     Focuses:  accessibility, template
------------------------------------+--------------------------------------

Comment (by afercia):

 @ramiy have you read #40331 and all the references posted there? Plenty of
 more established arguments there.

 > as long as placeholders are valid HTML attributes you cannot tell
 developers not to use them in their projects.

 RIght, they're valid. Then they should also be used in a valid way. Then,
 developers should also read the HTML51 specification to start with:
 https://www.w3.org/TR/html51/sec-forms.html#the-placeholder-attribute

 According to the spec, placeholders must be exclusively used for "hins"
 about the expected format or data type to enter.

 [[Image(https://cldup.com/xgR83MonTx.png)]]

 In 99% of the cases, these proposed placeholders will be used as
 replacements for the labels and the labels will be hidden with CSS or
 something, and this is something WordPress shouldn't encourage.

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


More information about the wp-trac mailing list