#14337 closed bug (notabug)
Trim in val() form field method
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.10.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When I try to get a value from an input type email, jquery is trimming the value!
Change History (3)
comment:1 Changed 9 years ago by
comment:2 Changed 9 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
jQuery is not trimming the value, it's trimmed before we see it.
If you look at the spec, a space would NOT be valid and shouldn't be there, so I assume the browser is trimming it, although that still doesn't make the value property valid.
Note: See
TracTickets for help on using
tickets.
Example: http://jsfiddle.net/BEjvq/