Bug Tracker

Opened 7 years ago

Closed 7 years ago

#13522 closed bug (notabug)

Email Validation (Plugins/Validation/Methods/email) Allows Non-Breaking Space at the end of an Email

Reported by: Ben Thomas Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Description

As the title suggests, the jQuery email validation plugin (built in to jQuery core) allows a non-breaking space character at the end of an email address. This should not be allowed (a normal space at the end of an email is marked as invalid).

To test this:

  • Type an email into the input box, then press the space bar. Press validate. This will display a message that the email address is invalid. This is correct functionality.
  • Type an email address again, then press Alt+255 on Windows, or cmd+space on Mac. This will be accepted as valid and won't show an error. This is incorrect. Alt+255 or cmd+space is a non-breaking space.

http://jsfiddle.net/VzdV8/

Change History (1)

comment:1 Changed 7 years ago by dmethvin

Resolution: notabug
Status: newclosed

This is the core bug tracker, please report plugin bugs to the author. There is no email validation built into jQuery core.

Note: See TracTickets for help on using tickets.