Side navigation
#7370 closed bug (invalid)
Opened November 01, 2010 02:43PM UTC
Closed November 01, 2010 06:30PM UTC
Last modified March 10, 2012 09:08AM UTC
IE 8 trim BUG
| Reported by: | xxcoderz@gmail.com | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.5 |
| Component: | unfiled | Version: | 1.4.3 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
this code not work in ie , work fine under ff , chrome
<input type="text" value="Your Name" id="mail_list_name" class="ie8text" />
.
.
...
var name = $('#mail_list_name').val().trim();
...
..
Attachments (0)
Change History (1)
Changed November 01, 2010 06:30PM UTC by comment:1
| resolution: | → invalid |
|---|---|
| status: | new → closed |
Thanks for the report, but this is not a jQuery bug. Calling
valwith no arguments returns a string.trimhappens to be a string function in JavaScript 1.8.1, which IE does not implement. The correct function in jQuery isjQuery.trim. In the future, please use the jQuery Forum for support requests.