From 60e3302d96f4b6277ccfdb828f82844fce159e75 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Mon, 3 Dec 2012 23:07:30 +0100 Subject: [PATCH] Selectmenu: use text() instead of html() as the option and optgroup is read as text --- ui/jquery.ui.selectmenu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index a0391268e..d97b52387 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -260,7 +260,7 @@ $.widget( "ui.selectmenu", { if ( item.optgroup !== currentOptgroup ) { $( "
  • ", { "class": "ui-selectmenu-optgroup" + ( item.element.parent( "optgroup" ).attr( "disabled" ) ? " ui-state-disabled" : "" ), - html: item.optgroup + text: item.optgroup }).appendTo( ul ); currentOptgroup = item.optgroup; } @@ -274,7 +274,7 @@ $.widget( "ui.selectmenu", { li.addClass( "ui-state-disabled" ); } li.append( $( "", { - html: item.label, + text: item.label, href: "#" }) );