Side navigation
#3667 closed bug (duplicate)
Opened November 30, 2008 02:30AM UTC
Closed March 18, 2009 01:16AM UTC
Last modified March 18, 2009 05:32PM UTC
Getting "background-position" on Firefox 2.0.0.18 (and olders)
Reported by: | rickgbw | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | core | Version: | 1.2.6 |
Keywords: | Cc: | rickgbw | |
Blocked by: | Blocking: |
Description
When I want the Background Position of one element, the correct CSS name for this atribute is "background-position".
So, on FF2 when I put:
$("#elem").css("background-position");
... it returns undefined, but works fine if I use "backgroundPosition".
By the way, on FF3, using "background-position" works right.
I think that is important works the CSS property with the correct name (background-position).
Attachments (0)
Change History (6)
Changed December 03, 2008 02:07PM UTC by comment:1
cc: | → rickgbw |
---|---|
component: | unfilled → core |
owner: | flesler |
Changed December 21, 2008 01:07AM UTC by comment:2
function attr:
in core.js seems to handle this problem
****** change
if ( value === undefined )
return this[0] && jQuery[ type || "attr" ]( this[0], name);
******* for
if ( value === undefined ) {
var camelCase = name.replace(/\\-(\\w)/g, function(all, letter){
return letter.toUpperCase();
});
return this[0] && jQuery[ type || "attr" ]( this[0], camelCase );
}
*****
you will see that fix (i guess), that fix under internet explorer :)
Changed February 05, 2009 12:57AM UTC by comment:3
FF2 only seems to work if it has been set with jQuery. Not if its been set with a external style sheet. Works fine with FF3
Changed March 18, 2009 01:16AM UTC by comment:4
resolution: | → duplicate |
---|---|
status: | new → closed |
duplicate of #3667
Changed March 18, 2009 03:34PM UTC by comment:5
The ticket is a duplicate of itself?