Bug in IE7 with $('#el').css.('background-position')
|Reported by:||artkik@…||Owned by:||mikesherov|
I found that $('#el').css.('background-position') is defined as "undefined" in IE7 (maybe in IE8 too, I had no tested yet) with jQuery 1.5+. In jQuery 1.42 it works well!
Here is an exampe code:
<!DOCTYPE HTML> <html><head> <meta charset="utf-8"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script> </head> <body> <div id="test" style="background-position:0 0;">text</div> <script> alert( $('#test').css('background-position') ) </script> </body> </html>
Try to change jquery to 1.42 and it gonna works.
Change History (20)
comment:2 follow-up: ↓ 10 Changed 5 years ago by timmywil
- Component changed from unfiled to css
- Milestone changed from None to 1.7.1
- Owner set to timmywil
- Priority changed from undecided to low
- Status changed from new to assigned
comment:18 Changed 5 years ago by Mike Sherov
- Resolution set to fixed
- Status changed from assigned to closed