Bug Tracker

Opened 5 years ago

Closed 5 years ago

#15227 closed bug (fixed)

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:

Description

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): http://jsfiddle.net/p788rqq9/1/

Pull request is here: https://github.com/jquery/jquery/pull/1647

Change History (5)

comment:1 Changed 5 years ago by nazar-pc

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

comment:2 Changed 5 years ago by dmethvin

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? https://github.com/Polymer/polymer/issues/686

comment:3 Changed 5 years ago by nazar-pc

I've solved it easier:

delete window.getDefaultComputedStyle;

comment:4 Changed 5 years ago by markelog

We should get rid of getDefaultComputedStyle anyway

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

comment:5 Changed 5 years ago by markelog

Resolution: fixed
Status: openclosed

Not sure why it didn't close automatically, fixed with https://github.com/jquery/jquery/commit/274feb53cc9a99633dfac785d8b3b837d192c43c

Note: See TracTickets for help on using tickets.