Skip to content

Commit f4374d1

Browse files
committed
fixed contentEditable judgement
1 parent eff4c46 commit f4374d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@
14111411
}
14121412
$.extend(this, {
14131413
_valHook: function() {
1414-
return this.element.getAttribute('contenteditable') !== null ? 'text' : 'val';
1414+
return this.element.contentEditable === 'true' ? 'text' : 'val';
14151415
},
14161416
getValue: function() {
14171417
var elem = this.element;

0 commit comments

Comments
 (0)