Modify ↓
Ticket #10050 (closed bug: duplicate)
Invalid argument jquery-1.6.2 line 8538
| Reported by: | sbagnak | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | css | Version: | 1.6.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
As continue of #9787
Code with error: http://jsfiddle.net/psv4R/
Code without error: http://jsfiddle.net/7sgKD/
Changed: percents to pixels
with error:
.animate({"width": percentage + "%"});
without error:
.animate({"width": Math.ceil(percentage/100*$('.passwordStrengthBar').width()) + px"});
Error present in IE8 for 1.5.2 and 1.6.2 too.
Change History
comment:1 Changed 22 months ago by rwaldron
- Priority changed from undecided to low
- Resolution set to duplicate
- Status changed from new to closed
- Component changed from unfiled to css
- Milestone changed from None to 1.6.3
comment:2 Changed 22 months ago by dmethvin
The .animate() docs say:
The units em and % can be specified where applicable.
I thought it was only px as well and was trying to figure out where the others might be "applicable". IE<8 doesn't have computed values so we don't have a simple way to convert them to px.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

jQuery normalizes all style property values to pixels. This is a duplicate. Will find later.