sofish/validator.js — pull request #10 by ChrisYip (2012-10-16 14:26:48+00:00)
Title: more reliable text validator.

the origin method won't work for invalid `maxlength` attribute, for example, `maxlength=null` should be ignored, `maxlength=1.9` should be `1`.