Skip to main content

Bug Tracker

Side navigation

#5627 closed bug (fixed)

Opened December 10, 2009 02:37AM UTC

Closed December 10, 2009 04:52AM UTC

Replace broken on css return value

Reported by: DumpsterDoggy Owned by:
Priority: major Milestone: 1.4
Component: core Version: 1.4a1
Keywords: css, replace Cc:
Blocked by: Blocking:
Description

The following test works in 1.3.2:

test("can set and retrieve width", function() {
	var width = $("<p/>").css({width:100}).css("width").replace(/px/,"");
	equals(width, 100);
});

but fails in 1.4a1 with the message:

$("<p/>").css({width: 100}).css("width").replace is not a function
Attachments (0)
Change History (1)

Changed December 10, 2009 04:52AM UTC by john comment:1

resolution: → fixed
status: newclosed