Skip to content

Commit f79a852

Browse files
committed
Autocomplete: Remove note about the menu requiring anchor tags
1 parent d2d4742 commit f79a852

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

entries/autocomplete.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@
182182
<method name="_renderItem" return="jQuery">
183183
<desc>
184184
<p>Method that controls the creation of each option in the widget's menu. The method must create a new <code>&lt;li&gt;</code> element, append it to the menu, and return it.</p>
185-
<p><em>Note: At this time the<code>&lt;ul&gt;</code> element created must contain an <code>&lt;a&gt;</code> element for compatibility with the <a href="/menu/">menu</a> widget. See the example below.</em></p>
186185
</desc>
187186
<argument name="ul" type="jQuery">
188187
<desc>The <code>&lt;ul&gt;</code> element that the newly created <code>&lt;li&gt;</code> element must be appended to.</desc>
@@ -201,7 +200,7 @@
201200
_renderItem: function( ul, item ) {
202201
return $( "<li>" )
203202
.attr( "data-value", item.value )
204-
.append( $( "<a>" ).text( item.label ) )
203+
.append( item.label )
205204
.appendTo( ul );
206205
}
207206
]]></code>

0 commit comments

Comments
 (0)