Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removeDotSegments works FF 3.6, broken in FF 5.0.1 #4

Open
jackdempsey opened this issue Jul 14, 2011 · 1 comment
Open

removeDotSegments works FF 3.6, broken in FF 5.0.1 #4

jackdempsey opened this issue Jul 14, 2011 · 1 comment

Comments

@jackdempsey
Copy link

input.length is returning 0 on line 130 and thus not triggering the while loop body. input.value.length does in fact get the correct value.

I'm not familiar enough with JS and various browser changes, but it seems pretty directly related to this, the prototype usage, and related code. Does this help in figuring out why it may not be working? Happy to try and add anything else that would.

Appreciate the library!

@wvh
Copy link

wvh commented Oct 3, 2017

I think it's because some javascript engines don't allow overriding String.length anymore. I guess you could use input.value.length, or call input.toString().length, which is how I solved the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants