Skip to content

Commit 9e63a6f

Browse files
author
Gabriel Schulhof
committed
Textinput: Use .nodeName and .toLowerCase()
Re jquery-archivegh-7959
1 parent f6d4e37 commit 9e63a6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/widgets/forms/textinput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ $.widget( "mobile.textinput", {
4444

4545
var options = this.options,
4646
isSearch = this.element.is( "[type='search'], :jqmData(type='search')" ),
47-
isTextarea = this.element[ 0 ].tagName === "TEXTAREA",
47+
isTextarea = this.element[ 0 ].nodeName.toLowerCase() === "textarea",
4848
isRange = this.element.is( "[data-" + ( $.mobile.ns || "" ) + "type='range']" ),
4949
inputNeedsWrap = ( (this.element.is( "input" ) ||
5050
this.element.is( "[data-" + ( $.mobile.ns || "" ) + "type='search']" ) ) &&

0 commit comments

Comments
 (0)