Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#14337 closed bug (notabug)

Trim in val() form field method

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.10.2
Keywords: Cc:
Blocked by: Blocking:


When I try to get a value from an input type email, jquery is trimming the value!

Example: http://rapomon.no-ip.info/jquery-bug.png

Change History (3)

comment:2 Changed 9 years ago by dmethvin

Resolution: notabug
Status: newclosed

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.


comment:3 Changed 9 years ago by [email protected]

It's true, an email value don't allow spaces. Thanks.

Note: See TracTickets for help on using tickets.