{"action":"created","issue":{"url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/1129","repository_url":"https://api.github.com/repos/guillaumepotier/Parsley.js","labels_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/1129/labels{/name}","comments_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/1129/comments","events_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/1129/events","html_url":"https://github.com/guillaumepotier/Parsley.js/issues/1129","id":168595799,"number":1129,"title":"Floating number validation","user":{"login":"cgrimal","id":3267094,"avatar_url":"https://avatars.githubusercontent.com/u/3267094?v=3","gravatar_id":"","url":"https://api.github.com/users/cgrimal","html_url":"https://github.com/cgrimal","followers_url":"https://api.github.com/users/cgrimal/followers","following_url":"https://api.github.com/users/cgrimal/following{/other_user}","gists_url":"https://api.github.com/users/cgrimal/gists{/gist_id}","starred_url":"https://api.github.com/users/cgrimal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgrimal/subscriptions","organizations_url":"https://api.github.com/users/cgrimal/orgs","repos_url":"https://api.github.com/users/cgrimal/repos","events_url":"https://api.github.com/users/cgrimal/events{/privacy}","received_events_url":"https://api.github.com/users/cgrimal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-01T08:44:50Z","updated_at":"2016-08-01T12:54:33Z","closed_at":null,"body":"What kind of issue is this? (put 'x' between the square brackets)\r\n\r\n - [ ] Question. This issue tracker is not the place for questions. If you want to ask how to do\r\n       something, or to understand why something isn't working the way you expect it to, use\r\n       http://stackoverflow.com/questions/ask .\r\n       Provide working code, starting from http://codepen.io/marcandre/pen/jqbzyN?editors=101.\r\n       We monitor the tag `parsley.js`.\r\n\r\n - [x] Bug report. If you’ve found a bug, you must provide a minimal example in a CodePen,\r\n       starting from http://codepen.io/marcandre/pen/jqbzyN?editors=101 .\r\n\r\n - [ ] Feature Request. Make sure there's no good way to do what you want first;\r\n       consider asking on http://stackoverflow.com/questions/ask first.\r\n\r\n--\r\nI think I found a bug with floating number validation. Here is a CodePen to illustrate it:\r\nhttp://codepen.io/cgrimal/pen/jApoyO?editors=1010\r\n\r\nThe `data-parsley-type=\"number\"` is not validating any number input with a `.`\r\nI read the docs, and tried many things but I can't make it work.\r\nOne thing that may help you: it works if you use release **2.2.0-rc4** and the problem starts with release **2.2.0**.\r\n\r\nI'll use 2.2.0-rc4 for the time being but I'm willing to understand if it is a genuine bug of the lib or me!\r\n\r\nThanks guys,\r\nClément"},"comment":{"url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/comments/236572411","html_url":"https://github.com/guillaumepotier/Parsley.js/issues/1129#issuecomment-236572411","issue_url":"https://api.github.com/repos/guillaumepotier/Parsley.js/issues/1129","id":236572411,"user":{"login":"marcandre","id":33770,"avatar_url":"https://avatars.githubusercontent.com/u/33770?v=3","gravatar_id":"","url":"https://api.github.com/users/marcandre","html_url":"https://github.com/marcandre","followers_url":"https://api.github.com/users/marcandre/followers","following_url":"https://api.github.com/users/marcandre/following{/other_user}","gists_url":"https://api.github.com/users/marcandre/gists{/gist_id}","starred_url":"https://api.github.com/users/marcandre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcandre/subscriptions","organizations_url":"https://api.github.com/users/marcandre/orgs","repos_url":"https://api.github.com/users/marcandre/repos","events_url":"https://api.github.com/users/marcandre/events{/privacy}","received_events_url":"https://api.github.com/users/marcandre/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T12:54:33Z","updated_at":"2016-08-01T12:54:33Z","body":"Mmm, right, the issue is with the way parameters are passed. If you use `parsley-type-min='0.1'` (since it's the `min` parameter to the `type` validator you want to specify) it'll work as expected.\r\n\r\nI'm too jetlagged to think what is the perfect solution to address this in general. If I'm not mistaken, `<input type=\"text\" step=\"0.1\">` is [not valid HTML5](https://html5.validator.nu/), so I'm not sure we should support it.\r\n"}}
{"actor":{"display_login":"marcandre"}}