URI icon indicating copy to clipboard operation
URI copied to clipboard

removeDotSegments works FF 3.6, broken in FF 5.0.1

Open jackdempsey opened this issue 14 years ago • 1 comments

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!

jackdempsey avatar Jul 14 '11 21:07 jackdempsey

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.

wvh avatar Oct 03 '17 09:10 wvh