[wp-trac] [WordPress Trac] #16539: Duplicate search widgets cause ID conflicts

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 7 10:28:21 UTC 2011

#16539: Duplicate search widgets cause ID conflicts
 Reporter:  solarissmoke            |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Widgets                 |     Version:  3.0
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |
Changes (by ryanimel):

 * cc: ryan@… (added)
 * keywords:  dev-feedback => dev-feedback has-patch


 I'll get the ball rolling here. I swapped the IDs in the <form> and submit
 <input>, though the text <input> requires the unique ID for the <label>'s
 "for='s'" to work and select the correct input when clicked. Swapping the
 IDs for classes solves the problem for those first two elements, but
 doesn't for the third.

 We'll need an incremental number added to the text <input> and the <label>
 to make that work right. My patch doesn't include that. I did make the
 tweaks to the Twenty Eleven theme as well (searchform.php and style).

Ticket URL: <http://core.trac.wordpress.org/ticket/16539#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list