[wp-trac] [WordPress Trac] #21934: Title field on Insert/edit link form shouldn't allow autosuggest

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 19 21:10:18 UTC 2012


#21934: Title field on Insert/edit link form shouldn't allow autosuggest
-----------------------------+--------------------------
 Reporter:  goldenapples     |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Editor
  Version:  3.4.2            |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 When entering a link through the "Insert/edit link" thickbox form, Firefox
 displays autosuggest dropdowns for both the URL field and the title field.

 This would be helpful, except that the javascript keyboard handlers bound
 on keydown/keyup prevent the browser UI from being accessible.

 What happens is:

 1. User tries to add link to text through the editor (Visual or HTML).
 1. User enters the correct URL into the URL field, and exits that field by
 hitting "tab".
 1. User begins typing the link title. Firefox browser UI helpfully
 suggests some similar titles.
 1. User sees a title they'd like to use, and hit the keyboard down arrow,
 thinking that this will select the correct title for them.
 1. What actually happens is that the first link listed below in the link
 to existing content gets selected. This overwrites what's been entered in
 the URL and title field.
 1. User says, WTF just happened.

 Solutions:

 - Adding `autocomplete="off"` to these two form fields would prevent
 Firefox from displaying its autosuggestions. This might fix the problem,
 but feels kind of like a bandaid.

 - A keydown/keyup handler could be attached to each of the text input
 fields with event.stopPropagation could stop the ui keyboard behavior when
 typing into those fields.

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


More information about the wp-trac mailing list