From: Adam Foster Date: Fri, 9 Jan 2015 21:55:19 +0000 (-0500) Subject: Resizable: Match on exact node name X-Git-Tag: 1.12.0-beta.1~463 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=faefab842bc79f212ccee227b7a37c7630b1573c;p=jquery-ui.git Resizable: Match on exact node name Fixes #10748 Closes gh-1417 --- 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( $("
").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);