Skip to main content

Bug Tracker

Side navigation

#10050 closed bug (duplicate)

Opened August 14, 2011 08:04PM UTC

Closed August 14, 2011 08:37PM UTC

Last modified October 15, 2012 09:18PM UTC

Invalid argument jquery-1.6.2 line 8538

Reported by: sbagnak Owned by:
Priority: low Milestone:
Component: css Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:

As continue of #9787

Code with error:

Code without error:

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.

Attachments (0)
Change History (6)

Changed August 14, 2011 08:37PM UTC by rwaldron comment:1

component: unfiledcss
milestone: None1.6.3
priority: undecidedlow
resolution: → duplicate
status: newclosed

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

Changed August 14, 2011 09:04PM UTC by dmethvin comment:2

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.

Changed August 14, 2011 09:04PM UTC by dmethvin comment:3

keywords: → needsdocs

Changed August 14, 2011 09:21PM UTC by rwaldron comment:4

Thanks for the clarification on that Dave :)

Changed August 26, 2011 01:39AM UTC by dmethvin comment:5

milestone: 1.6.3

Changed October 15, 2012 09:18PM UTC by mikesherov comment:6

keywords: needsdocs