Ticket #7423 (closed bug: worksforme)
`val` fails to return numeric elem.value
|Reported by:||vostrel||Owned by:|
When non-string value is assigned to element by:
and then retrieving the value back using:
I'm getting (in Chrome 7.0):
TypeError: Object 3.5 has no method 'replace'
pointing me to line 1589 in the latest 1.4.3. In there:
return (elem.value || "").replace(rreturn, "");
I'm not really sure if this actually is a bug or a feature. Either way my tests uncovered this issue.
I think adding an empty string to the elem.value would make it a string and while not hurting existing strings. But I may as well be missing the big picture here.
return (elem.value + "" || "").replace(rreturn, "");
Or are values required to be just strings?
Thanks very much for clarification