aboutsummaryrefslogtreecommitdiffstats
path: root/ui/selectmenu.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2014-07-31 12:35:42 +0200
committerScott González <scott.gonzalez@gmail.com>2014-11-04 08:40:15 -0500
commit979373983babce7122d98c4f3919426735555d61 (patch)
treebf3fc790034460b9f555f6c94db54d3a22b01079 /ui/selectmenu.js
parent809cc0f8d0c07c2be44942b3010bba1f9ce91be8 (diff)
downloadjquery-ui-979373983babce7122d98c4f3919426735555d61.tar.gz
jquery-ui-979373983babce7122d98c4f3919426735555d61.zip
Selectmenu: Copy title attributes
Fixes #10435 Closes gh-1298
Diffstat (limited to 'ui/selectmenu.js')
-rw-r--r--ui/selectmenu.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/selectmenu.js b/ui/selectmenu.js
index a2409bde2..0859a2c2c 100644
--- a/ui/selectmenu.js
+++ b/ui/selectmenu.js
@@ -94,7 +94,8 @@ return $.widget( "ui.selectmenu", {
"aria-expanded": "false",
"aria-autocomplete": "list",
"aria-owns": this.ids.menu,
- "aria-haspopup": "true"
+ "aria-haspopup": "true",
+ title: this.element.attr( "title" )
})
.insertAfter( this.element );
@@ -317,7 +318,9 @@ return $.widget( "ui.selectmenu", {
_renderItem: function( ul, item ) {
var li = $( "<li>" ),
- wrapper = $( "<div>" );
+ wrapper = $( "<div>", {
+ title: item.element.attr( "title" )
+ });
if ( item.disabled ) {
li.addClass( "ui-state-disabled" );