Skip to main content

Bug Tracker

Side navigation

#4713 closed bug (invalid)

Opened June 01, 2009 11:24PM UTC

Closed October 13, 2009 01:12AM UTC

[autocomplete] does not handle escaped characters after selection

Reported by: damian.biollo Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

With the autocomplete plugin, I specify a list of names and email addresses such as the following:

Me <me@email.com>

You <you@email.com>

Obviously the angle brackets need to be escaped, so in code, the call looks something like this:

$.autocompleter (["Me <me@email.com>",

"You <you@email.com>"]);

When it is displayed in the List UI, it is correct -- the angle brackets appear rather than the escaped chars. This is because the fillList() function uses the html() method:

$("<li/>").html (...)

But when the value is selected (in selectCurrent), the raw HTML is set to the input control value, with this line:

$input.val(v);

This is a bug because now the escaped characters show up instead of the angle brackets.

Attachments (0)
Change History (1)

Changed October 13, 2009 01:12AM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

This is not a jQuery core bug. Please use the jQuery forums or contact the author via the method they request. For jQuery UI plugins, please file a bug on http://dev.jqueryui.com .