Skip to main content

Search and Top Navigation

#5908 closed bug (wontfix)

Opened August 06, 2010 11:03AM UTC

Closed August 06, 2010 11:54AM UTC

Last modified October 11, 2012 09:15PM UTC

1.8.3 breaks html in autocomplete suggestions

Reported by: uweo Owned by:
Priority: minor Milestone:
Component: ui.autocomplete Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:
Description

In versions up to 1.8.2 one could put html in the autocomplete suggestions, i.e.:

[{"id":"35","label":"some text<br \\/>  some more","value":"35 -- blabla"}]

Since version 1.8.3 this is getting escaped, thus breaking the display.

Scott Gonzalez more or less documented the old way in http://forum.jquery.com/topic/using-html-in-autocomplete:

''You can put any HTML you want in your object's label and it should work without overriding the render method.''

I could override the render method, but the only documentation for it i have seen is in the same forum thread, which does not seem to be a guarantee.

The change has been done in response to http://dev.jqueryui.com/ticket/5275 . Please revert, or at least document the _renderItem method.

Attachments (0)
Change History (2)

Changed August 06, 2010 11:54AM UTC by scottgonzalez comment:1

resolution: → wontfix
status: newclosed

This change won't be reverted as it was intentional. There's already an example of how to accomplish this with the examples. We don't currently have a way to document "private" methods that are really public, but we will document this once we have a way to. In the meantime, the example acts as the documentation.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:2

milestone: TBD

Milestone TBD deleted