Core: Stop trimming value inside required method

There was never much of a point anyway, and it causes problems.

Fixes #1498
This commit is contained in:
Jörn Zaefferer
2015-06-16 19:50:11 +02:00
parent f59bb1389f
commit 2ad0ca82da
3 changed files with 5 additions and 5 deletions

View File

@@ -186,10 +186,10 @@ test("required", function() {
e = $("#text1, #text1b, #hidden2, #select1, #select2");
ok( method.call( v, e[0].value, e[0]), "Valid text input" );
ok(!method.call( v, e[1].value, e[1]), "Invalid text input" );
ok(!method.call( v, e[1].value, e[2]), "Invalid text input" );
ok(!method.call( v, e[2].value, e[2]), "Invalid text input" );
ok(!method.call( v, e[2].value, e[3]), "Invalid select" );
ok( method.call( v, e[3].value, e[4]), "Valid select" );
ok(!method.call( v, e[3].value, e[3]), "Invalid select" );
ok( method.call( v, e[4].value, e[4]), "Valid select" );
e = $("#area1, #area2, #pw1, #pw2");
ok( method.call( v, e[0].value, e[0]), "Valid textarea" );