]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete demo: Combobox: Encode search term inside tooltips. Fixes #8859 - Autoco...
authorScott González <scott.gonzalez@gmail.com>
Tue, 27 Nov 2012 15:52:19 +0000 (10:52 -0500)
committerScott González <scott.gonzalez@gmail.com>
Tue, 27 Nov 2012 15:52:40 +0000 (10:52 -0500)
demos/autocomplete/combobox.html

index 6229d47b2167b9e2170e317519a6981c18d780cc..8c6f59fc198702c10def85762fe9f23560e53ccc 100644 (file)
@@ -61,7 +61,7 @@
                                                // remove invalid value, as it didn't match anything
                                                $( element )
                                                        .val( "" )
-                                                       .attr( "title", value + " didn't match any item" )
+                                                       .attr( "title", $( "<a>" ).text( value ).html() + " didn't match any item" )
                                                        .tooltip( "open" );
                                                select.val( "" );
                                                setTimeout(function() {