[wp-trac] [WordPress Trac] #16538: Add placeholder attribute to search field

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 12 02:21:23 UTC 2011


#16538: Add placeholder attribute to search field
-------------------------+-----------------------------
 Reporter:  cyberskull   |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  UI           |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 By default the search widget is just a blank field. This is really
 unfortunate. However, HTML5 has a solution! Since the search field is
 already {{type="search"}}, we only need to add the attribute
 {{{placeholder="Search"}}} to the element.

 {{{
 <hmtl>
 …
 <form action="http://example.com/" method="get" id="searchform-1">
 <input type="search" name="s" id="s-1" placeholder="search" />
 </form>
 …
 </html>
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16538>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list