Skip to main content

Bug Tracker

Side navigation

#15227 closed bug (fixed)

Opened September 02, 2014 05:35PM UTC

Closed September 02, 2014 09:22PM UTC

Remove optimization to make jQuery compatible with Google's Polymer project

Reported by: nazar-pc Owned by:
Priority: high Milestone: 1.12/2.2
Component: css Version: 2.1.1
Keywords: Cc:
Blocked by: Blocking:

When Polymer platform is used together with jQuery, sometimes error happening:

TypeError: Argument 1 of Window.getDefaultComputedStyle does not implement interface Element.

Simplest reproducing is here I was able to prepare (happens on button mouseover):

Pull request is here:

Attachments (0)
Change History (5)

Changed September 02, 2014 05:40PM UTC by nazar-pc comment:1

Reproducible in Firefox (latest versions, most likely doesn't depend on specific version).

Changed September 02, 2014 05:44PM UTC by dmethvin comment:2

component: unfiledcss
milestone: None1.12/2.2
priority: undecidedhigh
status: newopen

We should get rid of getDefaultComputedStyle anyway. As far as solving your issue immediately, nazar-pc, did this help?

Changed September 02, 2014 05:49PM UTC by nazar-pc comment:3

I've solved it easier:

delete window.getDefaultComputedStyle;

Changed September 02, 2014 05:57PM UTC by markelog comment:4

We should get rid of getDefaultComputedStyle anyway

Totally, we tried it, and it makes things harder instead of simplifying it

Changed September 02, 2014 09:22PM UTC by markelog comment:5

resolution: → fixed
status: openclosed

Not sure why it didn't close automatically, fixed with