stripe-archive / jquery.payment

[DEPRECATED] A general purpose library for building credit card forms, validating inputs and formatting numbers.
MIT License
3.53k stars 686 forks source link

The spaces don't show up on Chrome 55 >= #249

Closed simoncpu closed 8 years ago

simoncpu commented 8 years ago

Expected behavior

$.fn.payment('formatCardNumber') should include spaces every 4 digits.

Actual behavior

$.fn.payment('formatCardNumber') does not include spaces every 4 digits on Chrome.

OS: Linux simoncpu 3.13.0-96-generic #143-Ubuntu SMP Mon Aug 29 20:15:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Non-working Chrome version: Google Chrome 55.0.2873.0 dev Working Chrome version: Google Chrome 53.0.2785.116

Steps to reproduce

  1. Open a Chrome v55 browser
  2. Go to http://stripe.github.io/jquery.payment/example/
  3. Enter a credit card number.
simoncpu commented 8 years ago

Never mind, it turns out that typing invalid first few numbers, regardless of Chrome version, causes this problem.

Test data: 1111111111111111