aboutsummaryrefslogtreecommitdiffstats
path: root/ui/resizable.js
diff options
context:
space:
mode:
authorAdam Foster <slimfoster@gmail.com>2015-01-09 16:55:19 -0500
committerScott González <scott.gonzalez@gmail.com>2015-01-09 16:56:20 -0500
commitfaefab842bc79f212ccee227b7a37c7630b1573c (patch)
treebbd3a447f2122cf484b026b20e70ec158281a764 /ui/resizable.js
parentc66842b45e032ac09f73fcd767e78390d7191b6f (diff)
downloadjquery-ui-faefab842bc79f212ccee227b7a37c7630b1573c.tar.gz
jquery-ui-faefab842bc79f212ccee227b7a37c7630b1573c.zip
Resizable: Match on exact node name
Fixes #10748 Closes gh-1417
Diffstat (limited to 'ui/resizable.js')
-rw-r--r--ui/resizable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/resizable.js b/ui/resizable.js
index 0671fb7b5..7eb747e76 100644
--- a/ui/resizable.js
+++ b/ui/resizable.js
@@ -104,7 +104,7 @@ $.widget("ui.resizable", $.ui.mouse, {
});
// Wrap the element if it cannot hold child nodes
- if (this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)) {
+ if (this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)) {
this.element.wrap(
$("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({
@@ -205,7 +205,7 @@ $.widget("ui.resizable", $.ui.mouse, {
this.handles[i] = this.element.children( this.handles[ i ] ).first().show();
}
- if (this.elementIsWrapper && this.originalElement[0].nodeName.match(/textarea|input|select|button/i)) {
+ if (this.elementIsWrapper && this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)) {
axis = $(this.handles[i], this.element);