From 1315b815c9570b72071e99f5e663e46fcd5bda5f Mon Sep 17 00:00:00 2001 From: Eric Date: Fri, 22 Jul 2011 07:38:30 -0700 Subject: [PATCH] Button: escaped the radio element's name so certain characters do not break the selector. Fixed #7505 - Buttonset Bug when radio with name = "data['page']['parse']" --- ui/jquery.ui.button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index 482cdc24cf3..65f6c0d6112 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -24,7 +24,7 @@ var lastActive, startXPos, startYPos, clickDragged, }, 1 ); }, radioGroup = function( radio ) { - var name = radio.name, + var name = radio.name.replace(/([[\]:'])/g,"\\$1"), form = radio.form, radios = $( [] ); if ( name ) {