[wp-trac] [WordPress Trac] #15081: Search Form should use type='search'

WordPress Trac noreply at wordpress.org
Tue Mar 5 22:23:39 UTC 2013


#15081: Search Form should use type='search'
--------------------------------------+------------------
 Reporter:  jorbin                    |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  3.6
Component:  Accessibility             |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch twentythirteen  |
--------------------------------------+------------------

Comment (by lancewillett):

 Replying to [comment:21 obenland]:
 > Replying to [comment:20 lancewillett]:
 > > I'd be OK with dropping the class on input and submit elements, and in
 Twenty Thirteen use type selectors with the form class instead. Simpler,
 doesn't rely on IDs.
 >
 > Sounds fair. IF we can use `.search-form` instead of `.searchform`
 please.

 As [https://irclogs.wordpress.org/chanlog.php?channel=wordpress-
 dev&day=2013-03-05&sort=asc#m569212 discussed in IRC] I think even though
 the [http://make.wordpress.org/core/handbook/coding-
 standards/css/#selectors WP CSS naming standards] recommend using hyphens
 between words, this is an exception, for the following reason: the ID is
 already there, and it's more user-friendly for themers to use the same
 value for both class and ID.

 I was wrong about older themes using the class already, though it's in
 Twenty Thirteen now. Twenty Eleven uses the ID selector only.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15081#comment:23>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list