#13468 closed bug (plugin)
.animate() on CSSStyleRule not working in all browser
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | git |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I've tried doing an .animate() on a CSSStyleRule-object. It works in Chrome and Safari, but in IE9, Firefox and Opera I get: Unhandled Error: WRONG_ARGUMENTS_ERR on line 6926: {{{ return window.getComputedStyle( elem, null ); }}}
Here's the fiddle http://jsfiddle.net/clox/fbhMp/4/
Simply removing that line from the jquery file fixes everthing for me, but I suppose that breaks something else =)
Change History (4)
comment:1 Changed 10 years ago by
Owner: | set to Oscar Jonsson <[email protected]…> |
---|---|
Status: | new → pending |
comment:2 Changed 10 years ago by
Status: | pending → new |
---|
Well, uh. Nowhere. I just assumed that it would be the same as with a dom-element since they're the same in many ways and I only want to modify their style-property which looks exactly the same as far as I can tell. And it does work crossbrowser. However animating it didn't work when I tried other browsers than Chrome/Safari. Should I have submit this as a feature-request instead perhaps? Sorry, that never hit me.
comment:3 Changed 10 years ago by
Resolution: | → plugin |
---|---|
Status: | new → closed |
I don't think we want to open a can of worms that big. Because of course once you can wrap a CSSStyleRule you'll want to naturally add new properties with .append()
or some such crazy stuff. This is really best done in a plugin.
Where did you read that you can wrap a CSSStyleRule with a jQuery object?