Bug Tracker

Modify

Ticket #10050 (closed bug: duplicate)

Opened 3 years ago

Last modified 19 months ago

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 3 years 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

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

comment:2 Changed 3 years 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.

comment:3 Changed 3 years ago by dmethvin

  • Keywords needsdocs added

comment:4 Changed 3 years ago by rwaldron

Thanks for the clarification on that Dave :)

comment:5 Changed 3 years ago by dmethvin

  • Milestone 1.6.3 deleted

comment:6 Changed 19 months ago by mikesherov

  • Keywords needsdocs removed

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.